devmark / angular-slick-carousel

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

Assigning dynamic value to limitTo filter and updating it after interval is breaking the slider #112

Open Gourav102 opened 7 years ago

Gourav102 commented 7 years ago

Hi All, I'm using angular 1.5.8 and slick 1.6.0 through "angular-slick-carousel". Image data I'm receiving is large in amount. So I want to limit ng-repeat value to 5 images for first time and bring next 5 images after some time interval using setInterval. For first time limitTo value is set to 5 and then after incrementing it by 5.

For first time, images are properly rendered in time. But after that, when setInterval executes, new images are received, but Sliders is breaking and all images are displaying one below another.

Is this a bug of slick slider. I have only that way to optimize the performance of my application.