title: How to get iterator index/key using protractor + angular?
body: <p>Is there a way to access the iterator index/key when looking for elements by repeater?</p>
  
  <pre><code>protractor.By.repeater("(id,cat) in pets")
  </code></pre>
  
  <p>In this case I'm looking to get access to "id" of the cat. The "id" is NOT one of the columns displayed as a value in the table, it is used for navigation as <code>ng-click="goto('/pets/'+cat.id)"</code>. There is no binding in the HTML such as <code>{{id}}</code> or <code>{{cat.id}}</code> so doing the following:</p>
  
  <pre><code>ptor.findElements(protractor.By.repeater("(id,cat) in pets").column('cat.id'))
  </code></pre>
  
  <p>returns an empty element: <code>[]</code></p>
  
  <p>I've also, unsuccessfully,  tried doing something like:</p>
  
  <pre><code>ptor.findElement(protractor.By.repeater("(id,cat) in pets").row(0).column('cat.id'))
  </code></pre>
  
  <p>What is the correct way to access that specific index?</p>
  
  <p><strong>Here's the non-shortened syntax of the answer by Jmr:</strong></p>
  
  <pre>
  ptor.findElements(protractor.By.repeater('(id, cat) in pets')).then(function (arr) {
      arr[0].evaluate('cat.id').then(function (id) {
          console.log(id);
      }); 
  });</pre>