Open nhim175 opened 8 years ago
same too
current, we can call update method after model changed to solve it. sample code as below:
$timeout(function () {
if (swiper) {
swiper.update(true);
}
}, 100);
@belerweb
$timeout(function () {
if (swiper) {
swiper.onResize();
}
});
This works too, no need to have 100
@nhim175 hi i use the method that you provide, but another problem occured.can you give me some help?thanks ReferenceError: swiper is not defined
@belerweb hi i use the method that you provide, but another problem occured.can you give me some help?thanks ReferenceError: swiper is not defined
Assuming that I'm using ng-repeat="photo in photos" to generate the slides.
After photos changed, the slider became buggy. (i.e. cannot swipe to the next slides)