title: Is it possible to ng-repeat incrementing $index by an arbitrary number?
body: <p>I currently have a template:</p>
  
  <pre><code>        &lt;div class="choice-pair" ng-repeat="choicePair in pastChoices track by $index" ng-init="p1Result = getP1Result(choicePair); choiceNum = $index + 1;"&gt;
              &lt;div class="turn-count cell"&gt;&lt;strong&gt;{{choiceNum}}&lt;/strong&gt;&lt;/div&gt;
              &lt;div class="p1 cell" ng-class="{win: p1Result === 1, lose: p1Result === -1, draw: p1Result === 0}"&gt;&lt;strong&gt;{{choicePair[0]}}&lt;/strong&gt;&lt;/div&gt;
              &lt;div class="p2 cell" ng-class="{win: p1Result === -1, lose: p1Result === 1, draw: p1Result === 0}"&gt;&lt;strong&gt;{{choicePair[1]}}&lt;/strong&gt;&lt;/div&gt;
          &lt;/div&gt;
  </code></pre>
  
  <p>pastChoices is an array containing sub arrays of length 2 for example:</p>
  
  <pre><code>[['A', 'B'],['B', 'C'],['A', 'A'],['C', 'A']]
  </code></pre>
  
  <p>but due to a need to change the data storage type on the server I have had to flatten this structure so that pastChoices are now inlined:</p>
  
  <pre><code>['A', 'B', 'B', 'C', 'A', 'A', 'C', 'A']
  </code></pre>
  
  <p>is it possible for me to make a small change to the template to get it to iterate over the new pastChoices format by incrementing by 2, so then I can select out choice pairs like:</p>
  
  <pre><code>        &lt;div class="choice-pair" ng-repeat="choices in pastChoices track by $index" ng-init="p1Result = getP1Result(pastChoices[$index], pastChoices[$index + 1]);"&gt;
              &lt;div class="turn-count cell"&gt;&lt;strong&gt;{{$index + 1}}&lt;/strong&gt;&lt;/div&gt;
              &lt;div class="p1 cell" ng-class="{win: p1Result === 1, lose: p1Result === -1, draw: p1Result === 0}"&gt;&lt;strong&gt;{{pastChoices[$index]}}&lt;/strong&gt;&lt;/div&gt;
              &lt;div class="p2 cell" ng-class="{win: p1Result === -1, lose: p1Result === 1, draw: p1Result === 0}"&gt;&lt;strong&gt;{{pastChoices[$index + 1]}}&lt;/strong&gt;&lt;/div&gt;
          &lt;/div&gt;
  </code></pre>
  
  <p>this looks like it will get me the data I want, except that it will iterate over every element of the pastChoices array, where as I want it to effectively skip odd numbered elements.</p>