Open ichabodcole opened 10 years ago
Something similar happens when the source changes also:
slick(infinite="false", lazy-load='ondemand', slides-to-show=8, slides-to-scroll=4, dots="true", init-onload="true", data="MODEL.selectedPortfolio.images")
div(ng-repeat="img in MODEL.selectedPortfolio.images")
When I add more images to the images array the slider breaks and it list vertically.
It seems this issue is because when the source changes on the scope and the slider is reinitialized some div containers are not reinserted as the original rendering.
.slick-list and .slick-track are missing
Any ideas how to fix this one?
Any work around to fix this issue?
Well, in my case I actually ended up switching to "angular-carousel".
I created my own directive using slickAdd method to add the slides. Check the gist here: https://gist.github.com/esgy/815a7b064d5cfdd5c36f
I have an ng-repeat inside of a slick carousel with a limitTo filter applied. The idea is the user will be able to click a button on the last slide to show more slides which sets the filter limit to a higher value, however changing the limit results in the carousel breaking and showing a vertical list of results instead of the carousel. This occurs whether the limit is raised or lowered.
Any work around for this? Is there a way to force the carousel to reinitialize?