vasyabigi / angular-slick

Angular directive for slick-carousel
http://vasyabigi.github.io/angular-slick/
MIT License
500 stars 237 forks source link

Change name of autoplay option. #146

Open HyunSeob opened 8 years ago

HyunSeob commented 8 years ago

autoplay is currently duplicated with HTML5 autoplay attribute. So this can cause unexpected behaviors as following:

I am using the html-minifier. And "Collapse boolean attributes" option has a problem. If I enable this option, boolean value is removed after minifying! Like this: <slick autoplay="true"></slick> => <slick autoplay></slick>

So, I want you change name of autoplay option. or If you can find other solution, that's OK, too.

Tyurin23 commented 7 years ago

Try to use data-* attribute: <slick arrows="{{vm.slider.arrows}}" infinite="{{vm.slider.infinite}}" speed="{{vm.slider.speed}}" data-autoplay="{{vm.slider.autoplay}}"> It's works for me.