title: Angular.js get index of last element in 2d array in ng-repeat
body: <p>I have this 2d array in my controller:</p>
  
  <pre><code>1 2 6
  1 2 7 9
  2
  1 5 3 2 6
  </code></pre>
  
  <p>I need to show to the user the last element of each row (example: 6, 9, 2, 6)
  I think I need to use some combination of directive <strong>ng-repeat</strong> or get the <strong>$last</strong> index of the array using angular <strong>filters</strong>.</p>
  
  <p>Here's what I have but doesn't work:</p>
  
  <pre><code>&lt;div ng-repeat="row in array"&gt;
   {{row[$last].property}}
  &lt;/div&gt;
  </code></pre>
  
  <p>Thanks</p>