how to set $Index to 1 every ng-repeat call
<pre><code> &lt;table class="table table-bordered"&gt;
      &lt;tr ng-repeat="x in AppliedJob"&gt;
    &lt;td&gt;{{x.JobName}}&lt;/td&gt;
 &lt;td&gt;  &lt;span class="dropdown" ng-repeat="y in AppliedCenter|  unique: 'Location' " ng-if="y.JobName==x.JobName"&gt;
 {{$index+1}}){{y.Location}}                      
 &lt;/span&gt; &lt;/td&gt;&lt;/tr&gt; &lt;/table&gt;
</code></pre>

<p>Output of above code</p>

<pre><code>1) Tester    :  1)India 2)USA 3)Australia
2) Developer :  4)Japan 5)China
</code></pre>

<p>Required Output</p>

<pre><code>1) Tester    :  1)India 2)USA 3)Australia
2) Developer :  1)Japan 2)China
</code></pre>

<p>I want to set <code>$Index</code> to <code>1</code>. </p>