vasyabigi / angular-slick

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

autoplaySpeed doesn't work #78

Closed onlyskyguy closed 9 years ago

onlyskyguy commented 9 years ago

The autoplaySpeed setting doesn't work. Can anyone help with this? Not sure what's wrong. It's stuck on the default value.

I'm calling angular slick in a directive:

<slick slides-to-show="1" slides-to-scroll="1" touch-move="false" swipe="false" arrows="false" pauseOnHover="false" autoplay="true"  infinite="true"     draggable="false" lazyLoad="ondemand" data="slideImages" autoplaySpeed="6000" speed="1000" fade="true" class="hero-slider lazy">
    <div ng-repeat="image in heroImages" class="hero-image" style="background-image:url({{image}})"></div>
</slick>

EDIT: Nevermind, didn't put dashes in the parameters in the directive... For whoever else over looks this, anything that uses camelcase ex) lazyLoad or autoplaySpeed, needs to have a dash (-) instead of the camel cased letter, ex) lazy-load, autoplay-speed. It's an angular thing.