Whenever the changeItem() button is clicked, it changes $scope.item which i use in ng-repeat(in slide-box).
My problem here is that $ionicSlideBoxDelegate.update(); doesnât update and set the pager index to 0 with the new number of images of the selected item even though the $scope.item changes.
The problem with ng-repeat and ion-slide-box is that the directiveâs isolated scope is not being updated. A work around is to add an attribute directive to your slide-box.
This solution worked for cloudant.com update Array. BUT I put 500 ms in time.
Like this :
remoteDB.get(ârodadasâ).then(function(doc) {
$scope.util.rodadas = doc[ârodadasâ];
$timeout(function() {
$ionicSlideBoxDelegate.$getByHandle(ârodadasBoxâ).update();
}, 500);