# Slide-box with ng-repeat not updating

**URL:** <https://forum.ionicframework.com/t/slide-box-with-ng-repeat-not-updating/15797>\
**Category:** ionic-v1\
**Created:** [January 16, 2015, 12:27am UTC](https://forum.ionicframework.com/t/slide-box-with-ng-repeat-not-updating/15797 "2015-01-16T00:27:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fanireis](https://avatars.discourse-cdn.com/v4/letter/f/f05b48/32.png) [@fanireis](https://forum.ionicframework.com/u/fanireis)\
**Post date:** [January 16, 2015, 12:27am UTC](https://forum.ionicframework.com/t/slide-box-with-ng-repeat-not-updating/15797/1 "2015-01-16T00:27:21Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![rcnm](https://avatars.discourse-cdn.com/v4/letter/r/74df32/32.png) [@rcnm](https://forum.ionicframework.com/u/rcnm)\
**Post date:** [February 9, 2015, 6:41pm UTC](https://forum.ionicframework.com/t/slide-box-with-ng-repeat-not-updating/15797/2 "2015-02-09T18:41:25Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![sarale](https://avatars.discourse-cdn.com/v4/letter/s/d07c76/32.png) [@sarale](https://forum.ionicframework.com/u/sarale)\
**Post date:** [February 11, 2015, 3:53pm UTC](https://forum.ionicframework.com/t/slide-box-with-ng-repeat-not-updating/15797/3 "2015-02-11T15:53:18Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![rcnm](https://avatars.discourse-cdn.com/v4/letter/r/74df32/32.png) [@rcnm](https://forum.ionicframework.com/u/rcnm)\
**Post date:** [February 20, 2015, 12:42pm UTC](https://forum.ionicframework.com/t/slide-box-with-ng-repeat-not-updating/15797/4 "2015-02-20T12:42:58Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![sarale](https://avatars.discourse-cdn.com/v4/letter/s/d07c76/32.png) [@sarale](https://forum.ionicframework.com/u/sarale)\
**Post date:** [February 25, 2015, 5:08pm UTC](https://forum.ionicframework.com/t/slide-box-with-ng-repeat-not-updating/15797/5 "2015-02-25T17:08:05Z")

</div>

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