Closed Wallfacer005CN closed 8 years ago
I have fixed it by ng-if.
<ks-swiper-container show-nav-buttons="true" ng-if="items">
Is this because you used ng-repeat on items?
Im using ng-repeat and running into this issue. How can I fix it?
Explanation:
This is because the swiper is started before all the slides are created through the angular ng-repeat directive. Thus a .update
is needed to recalculate these properties, and wrapping a $timeout will force this method to be invoked at the end of the digest cycle 👍 .
The slide can't swip before I resize the browser window. Once I resize the brwser window, then it can work very well. Why?