ksachdeva / angular-swiper

Angular directive for nolimits4web/Swiper
Apache License 2.0
197 stars 94 forks source link

Can't apply changes when I add or remove slides from array #59

Open ghost opened 7 years ago

ghost commented 7 years ago

Hi people, i use the angular-swiper directive in my project.

Here a codesnippet: <ks-swiper-container class="teaser-slider" swiper="$ctrl.swiper" override-parameters="$ctrl.swiperSettings" pagination-is-active="true"> <ks-swiper-slide class="swiper-slide" ng-repeat="slide in $ctrl.slides track by $index"> <h4>{{slide.headline}}</h4> <p>{{slide.subheadline}}</p> </ks-swiper-slide> </ks-swiper-container>

When I add or remove some slide objects from the $ctrl.slides array in my controller the slider won´t apply the changes.

Whats wrong or how can I fix this? Thanks for your help!

LB-DotFish commented 7 years ago

i also have the problem

nok32 commented 7 years ago

I have the same problem

idseventeen commented 7 years ago

You can use $ctrl.swiper.update() to update, the official document has instructions.