Items in list as slidebox slides


#1

what would be the easiest way to grab a list of users and put each one in a slidebox?

It would be nice if you could use ng-repeat on slides.

Any help would be appreciated.


#2

You can use ng-repeat on slides.

<ion-slide-box>
  <ion-slide ng-repeat="user in users">{{user.name}}</ion-slide>
</ion-slide-box>

You will need to call $ionicSlideBoxDelegate.update(); after you load the data from the controller. Preferably after a short delay as to make sure that the data is done loading into the slidebox.


#4

Thanks so much, I knew it should have been working haha.

I was forgetting the $ionicSlideBoxDelegate.update(); part.