Slides generated with ng-repeat causing issues (slide-box)

I know this is old, but I ran into this issue as well while using an ng-repeat on a slider. My solution was pretty simple:

expose $ionicSlideBoxDelegate;

controllersModule.controller("ViewObservationCtrl", ["$scope", "$ionicSlideBoxDelegate",
function ($scope, $ionicSlideBoxDelegate) {      
    
        $scope.updateSlider = function () {
            $ionicSlideBoxDelegate.update(); //or just return the function
        }
    });
....

Then on my view I called the update function with ng-init:

 <ion-slide ng-repeat="image in observation.images.image" ng-init="updateSlider()">                  
         <img src="...jpg"/>                
  </ion-slide>
8 Likes