Can't apply changes when I add or remove slides from array
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!
i also have the problem
I have the same problem
You can use $ctrl.swiper.update() to update, the official document has instructions.