I would love to loop through the following array in my controller,
var array = ['text1', 'text2', 'text3'];
Then display an item at a time in my view using angular $interval.
When it gets to the last item, it should start again from item 1. Only one item should be displayed at a time.
Please don't judge, sounds easy but this is my 2nd week or so with angularjs.
activeItemto denote which item is currently being displayed - and each interval, check the index of the active item and go to the next. If you're at the last index, start at the beginning.