title: AngularJS - Change text continuously from a array of strings
body: <p>Is there a way to simulate a carousel of text in my angular controller?</p>
  
  <p>Such as:</p>
  
  <pre><code> //html 
   &lt;span&gt; {{ notes }}&lt;/span&gt;
  
   //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;
         }
     }
  </code></pre>
  
  <p>Is there a way to do this without a infinite loop? I am trying to create a carousel of text vertically and having fade animations in a CSS class to try and accomplish this.</p>