devmark / angular-slick-carousel

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

Changing config of active carousel causes carousel to reload #94

Open YeomansIII opened 8 years ago

YeomansIII commented 8 years ago

I'm using the settings attribute on the slick directive to pass in configuration for my carousel. I want to be able to stop autoplay after a user has performed a certain action within the carousel. When I change the autoplay value in my config to false, the slick carousel will reload on the page causing ~1second of the page completely flashing or looking messed up.

Is it possible to make config changes without reloading the carousel?

madine commented 7 years ago

@YeomansIII I'm having the same issue. I ended up using jquery:

$('.carousel').slick("slickSetOption", "swipe", false, false);

Did you work out a better, more angular friendly way?

GabrielMSharp commented 7 years ago

Any plans to expose this method so we can avoid jQuery?