Slide-box with ng-repeat not updating

Hello everybody,

I am having trouble updating an image in a slide-box. Here what my code looks like:

   <ion-slide-box show-pager="false" on-slide-changed="slideChanged(index)" does-continue="true" active-slide="currentImg" delegate-handle="image-viewer" >
        <ion-slide ng-repeat="image in images">

          <div class="card">

            <div class="item item-text-wrap">
              <a class="item item-thumbnail-left" href="#">
                  <img ng-src="{{ images[currentImg].img}}">
                </a>
            </div>
          </div>
        </ion-slide>

The image is being changed by using the Image Picker plug-in, which is working fine.
I have tried using {{image.img}}, using $ionicSlideBoxDelegate.update(), waiting for the $ionicView.enter event. The only one that worked was changed the image globally, but it this way, the slide animation is not smooth.

Any ideas?

Thank you very much!

1 Like

I have the same problem here.
Have you find any solution, @fanireis?

try to pass by : on-swipe event to call ur SlideChanged function and add $index instead of index
try to work with $ionicSlideBoxDelegate.CurrentIndex() function to
i should see your controller to help you good luck @fanireis @rcnm

Thanks for replying, @sarale. Unfortunately, it does not solve my problem.

what about trying to call ur function in on-slide-changed event that solves a lot of problems !