Well, I have a problem. The autoplay option
is not working in my slider, that fetches the images I put in the ng-repeat
. So the images are all fetched and that works, yet it does not recognize it properly (I guess?) to make autoplay working. I am using Ionic v1
btw.
Cordova CLI: 6.4.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
ios-deploy version: 1.9.0
ios-sim version: 5.0.8
OS: macOS Sierra
Node Version: v6.8.1
Xcode version: Xcode 8.3.2 Build version 8E2002
This is what I have in my controller:
// Start slider
$scope.options = {
autoplay: 1500
};
$scope.$on("$ionicSlides.sliderInitialized", function (event, data) {
// data.slider is the instance of Swiper
$scope.slider = data.slider;
});
// Slider end
And this it the HTML:
<ion-slides options="options" slider="slider">
<ion-slide-page ng-repeat="user in users | filter:{userFilter: true}">
<img ng-src="{{user.leadImage}}">
</ion-slide-page>
</ion-slides>
Whatever I do, the autoplay does not work!
When I try the same options and the same HTML, without the ng-repeat, the autoplay suddenly works!
So what am I doing wrong here?