Is it possible to create a text carousel in my angular controller without using an infinite loop?
For example:
//html
<span> {{ notes }}</span>
//angular controller
var i = 0;
var array = ["A", "B", "C", "D", "E"];
while (true) {
$scope.notes = array[i];
i = i + 1;
if (i = array.length - 1) {
i = 0;
}
}
I want to have a vertical text carousel with fade animations using CSS classes. Are there alternative methods to achieve this result?