title: use of ng-repeat with ng-class and $index
body: <p>i need different classes to be used for each iteration, following code.</p>
  
  <p><strong>Edit: the index is within the li</strong></p>
  
  <pre><code>&lt;li class="table-view-cell bg_{{$index}}" ng-repeat="agenda in agendas"&gt;
          &lt;span class="cell"&gt;
              &lt;a data-href="#/agendas/{{agenda.id}}" ng-click="detail($event, agenda.id)"&gt;
                  &lt;span class="type"&gt;{{agenda.date}}&lt;/span&gt;
              &lt;/a&gt;
          &lt;/span&gt;
      &lt;/li&gt;
  </code></pre>
  
  <p>also Why do we need ng-class, could I not use simple class here?</p>