I am currently working with the angular-slick-carousel library. Unfortunately, I am encountering an issue where the Slick methods, such as slickGoTo()
, are not functioning as expected.
Below is my Controller setup following the provided documentation:
$scope.slickConfig = {
method: {}
};
Here is a glimpse of my view:
<slick infinite=true
arrows=true
speed=500
slides-to-show=4
slides-to-scroll=1
as-nav-for=".slider-for"
class="slider-nav"
settings="slickConfig"
>
<a href=""
class="thumb col-xs-2"
ng-repeat="photo in photos"
ng-click="slickConfig.method.slickGoTo(2)"> // <<<< method not working as expected
<img ng-src="{{photo.thumb}}" alt="">
</a>
</slick>
Could I be implementing it incorrectly?