title: what is the use of $index in angularjs?
body: <p>What is the exact use of $index in angularjs.I have little confusion with using $index in angularjs</p>
  
  <pre><code>&lt;div class="row review" ng-show="mode=='review'"&gt;
      &lt;div class="col-sm-4" ng-repeat="question in questions"&gt;
          &lt;div ng-click="goTo($index + 1)" class="{{ isAnswered($index) == 'Answered'? 'answered': 'not-answered' }}"&gt;{{$index + 1}}. {{ isAnswered($index) }}&lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>