I’m new to ionic and need help. I’m trying to load images dynamically through the .controller. It populates a ion-slide box with the images. So far the images are pre-loaded i.e
So you have your images in an array which is the first part.
The next part is using ng-repeat on the aImages in your slidebox element.
Once you get that working, you can then add items to your alImages array but just doing:
aImages.push(NEW_IMAGE_OBJECT);
Once you push an image to the array, you need to tell slidebox to update, which basically rerenders the slidebox with a new slide. You can do so by calling:
$ionicSlideBoxDelegate.update();
I recommend giving your slidebox element a delegate handle by adding this attribute to your slidebox element: