vasyabigi / angular-slick

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

Issue when transitioning states, also doesnt hide inactive slides #108

Open bautistaaa opened 9 years ago

bautistaaa commented 9 years ago

When I navigate to another state and go back, the slick carousel displays all slides on the page for a second then creates the slick carousel. How can I get around that? In addition, slides that shouldn't current be displayed are shown outside the prev/next arrows.. not sure why that is happening

html is pretty basic.

<slick infinite="true" slides-to-show="5" slides-to-scroll="1">
<div class="col-sm-2">
...
</div>
<div class="col-sm-2">
...
</div>
<div class="col-sm-2">
...
</div>
<div class="col-sm-2">
...
</div>
<div class="col-sm-2">
...
</div>
<div class="col-sm-2">
...
</div>
<div class="col-sm-2">
...
</div>
<div class="col-sm-2">
...
</div>

</slick>
sinziananicolae commented 9 years ago

I have the same problem! I have an input in each slide and when I insert a value in it, for a second it displays all the data as if it recreates the carousel.

webben-de commented 8 years ago

Could anyone solve this problem? @sinziananicolae or @bautistaaa maybe?

swapnil001 commented 8 years ago

Any update on this?

webben-de commented 8 years ago

I use a different package called "angular-slick-carousel".

If you create the slick element with an "ng-if" directive inside when the data is loaded, works for me.

swapnil001 commented 8 years ago

Thanks. I got it working with this package only.