So, I have this array.
app.controller("ImagesController", function($scope){
$scope.selectedImage = 0;
$scope.images = [
{
image1: 'images/levels/level1/sky.jpg',
image2: 'images/levels/level1/rain.jpg',
image3: 'images/levels/level1/sky.jpg'
},
{
image1: 'images/levels/level2/horse.jpg',
image2: 'images/levels/level2/dog.jpg',
image3: 'images/levels/level2/cat.jpg'
}
];
I'll be adding more images to the array above. I want three images to be on my html page at a time. Then as I press the right/left arrow key, I want the three images to get swapped for the next 3 images and so on(basically move the array to the next element I guess). Is this possible using AngularJS or Jquery? If it is, then how do I implement it?
EDIT: I'm okay with not using AngularJS as well and going for a simpler approach to changing the images, but I need that to happen fast.