Closed fabioformosa closed 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);
Cannot read property 'slickGoTo' of undefined
$timeout(function(){ $scope.slickConfig.method.slickGoTo(0); }, 10);
Any suggestion to solve it?
I'm sorry, it was my mistake. I had 2 timeouts that conflicted.
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?