devmark / angular-slick-carousel

Angular directive for slick-carousel
http://devmark.github.io/angular-slick-carousel/
MIT License
353 stars 125 forks source link

Cannot read property 'slickGoTo' of undefined #127

Closed fabioformosa closed 7 years ago

fabioformosa commented 7 years ago

There is some race conditions, because sometimes (not always) slick.min.js raises this error Cannot read property 'slickGoTo' of undefined when I call $timeout(function(){ $scope.slickConfig.method.slickGoTo(0); }, 10);

Any suggestion to solve it?

fabioformosa commented 7 years ago

I'm sorry, it was my mistake. I had 2 timeouts that conflicted.