vasyabigi / angular-slick

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

Handle all slick events #100

Open umpirsky opened 9 years ago

umpirsky commented 9 years ago

My use case was finding workaround for https://github.com/vasyabigi/angular-slick/issues/72.

Workaround was doing http://stackoverflow.com/questions/29101254/angularjs-slick-js-carousel-ng-click-not-firing-with-responsive-attribute-settin/30584787#30584787, but this worked only when resizing window, on mobile it still does not work. So I came up with on-set-position="slickOnInit()" which used to fix it, but I need onSetPosition support.

I added it as well as other events listed on https://github.com/kenwheeler/slick#events. It may be useful for many other use cases to have this events available.

@vasyabigi Please review and merge it as soon as you have time. Would be nice if you can release new version including this change.

Thanks.