angular-slick-carousel icon indicating copy to clipboard operation
angular-slick-carousel copied to clipboard

Changing config of active carousel causes carousel to reload

Open YeomansIII opened this issue 10 years ago • 2 comments

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?

YeomansIII avatar Aug 09 '16 19:08 YeomansIII

@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?

madine avatar Nov 04 '16 15:11 madine

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

GabrielMSharp avatar Apr 26 '17 11:04 GabrielMSharp