title: Get the index (counter) of an 'ng-repeat' item with AngularJS?
body: <p>I am using AngularJS and its <code>ng-repeat</code> directive to display a sequence of questions. I need to number each question starting with <code>1</code>. How do I display and increment such a counter with <code>ng-repeat</code>? Here is what I have so far:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;ul&gt;
      &lt;li ng-repeat="question in questions | filter: {questionTypesId: questionType, selected: true}"&gt;
          &lt;div&gt;
              &lt;span class="name"&gt;
                  {{ question.questionText }}
              &lt;/span&gt;
          &lt;/div&gt;
          &lt;ul&gt;
              &lt;li ng-repeat="answer in question.answers"&gt;
                  &lt;span class="name"&gt;
                      {{answer.selector}}. {{ answer.answerText }}
                  &lt;/span&gt;
              &lt;/li&gt;
          &lt;/ul&gt;
      &lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>