title: AngularJS: ng-repeat index and limit error
body: <p>I'm using AngularJS 1.2.13.</p>
  
  <p>This is not working. I'm getting an error of couple dozen lines with minimized code, so that's not helpful. Can someone tell me what could be wrong here?</p>
  
  <p>My goal is this: display data from two-dimensional array in a table in a reverse order, limit number of rows to 5. The data is being updated live (rows added to array).</p>
  
  <pre><code>&lt;tr ng-repeat="row in data track by $index | limitTo:5 | reverse"&gt;
      &lt;td&gt;{{$index}}&lt;/td&gt;
      &lt;td ng-repeat="col in row"&gt;
          {{col}}
      &lt;/td&gt;
  &lt;/tr&gt;                   
  </code></pre>
  
  <p>Another thing: is it possible to display something like <code>{{$index + 1}}</code>? As in - display data as 1-based indexing instead of zero based indexing.</p>
  
  <p><strong>UPDATE:</strong> This is the error I'm getting on page refresh:</p>
  
  <pre><code>Error: [$injector:unpr] http://errors.angularjs.org/1.2.13/$injector/unpr?p0=reverseFilterProvider%20%3C-%20reverseFilter
  E/&lt;@http://localhost:9001/assets/javascripts/angular.min.js:6
  ac/l.$injector&lt;@http://localhost:9001/assets/javascripts/angular.min.js:32
  c@http://localhost:9001/assets/javascripts/angular.min.js:30
  ac/p.$injector&lt;@http://localhost:9001/assets/javascripts/angular.min.js:32
  c@http://localhost:9001/assets/javascripts/angular.min.js:30
  Cc/this.$get&lt;/&lt;@http://localhost:9001/assets/javascripts/angular.min.js:116
  Za.prototype.filter@http://localhost:9001/assets/javascripts/angular.min.js:159
  Za.prototype.filterChain@http://localhost:9001/assets/javascripts/angular.min.js:159
  Za.prototype.statements@http://localhost:9001/assets/javascripts/angular.min.js:159
  Za.prototype.parse@http://localhost:9001/assets/javascripts/angular.min.js:156
  zd/this.$get&lt;/&lt;@http://localhost:9001/assets/javascripts/angular.min.js:92
  ye&lt;/&lt;.link@http://localhost:9001/assets/javascripts/angular.min.js:185
  I@http://localhost:9001/assets/javascripts/angular.min.js:49
  h@http://localhost:9001/assets/javascripts/angular.min.js:42
  h@http://localhost:9001/assets/javascripts/angular.min.js:42
  h@http://localhost:9001/assets/javascripts/angular.min.js:42
  h@http://localhost:9001/assets/javascripts/angular.min.js:42
  h@http://localhost:9001/assets/javascripts/angular.min.js:42
  h@http://localhost:9001/assets/javascripts/angular.min.js:42
  h@http://localhost:9001/assets/javascripts/angular.min.js:42
  Y/&lt;@http://localhost:9001/assets/javascripts/angular.min.js:42
  ue&lt;/&lt;.link@http://localhost:9001/assets/javascripts/angular.min.js:183
  I@http://localhost:9001/assets/javascripts/angular.min.js:49
  h@http://localhost:9001/assets/javascripts/angular.min.js:42
  Y/&lt;@http://localhost:9001/assets/javascripts/angular.min.js:42
  ba/&lt;@http://localhost:9001/assets/javascripts/angular.min.js:43
  p@http://localhost:9001/assets/javascripts/angular.min.js:47
  te&lt;/&lt;.compile/&lt;/&lt;/&lt;@http://localhost:9001/assets/javascripts/angular.min.js:183
  q/g.success/&lt;@http://localhost:9001/assets/javascripts/angular.min.js:67
  Bd/e/l.promise.then/B@http://localhost:9001/assets/javascripts/angular.min.js:94
  Bd/e/l.promise.then/B@http://localhost:9001/assets/javascripts/angular.min.js:94
  Bd/f/&lt;.then/&lt;@http://localhost:9001/assets/javascripts/angular.min.js:95
  Cd/this.$get&lt;/h.prototype.$eval@http://localhost:9001/assets/javascripts/angular.min.js:103
  Cd/this.$get&lt;/h.prototype.$digest@http://localhost:9001/assets/javascripts/angular.min.js:101
  Cd/this.$get&lt;/h.prototype.$apply@http://localhost:9001/assets/javascripts/angular.min.js:104
  g@http://localhost:9001/assets/javascripts/angular.min.js:68
  I@http://localhost:9001/assets/javascripts/angular.min.js:72
  qd/&lt;/y.onreadystatechange@http://localhost:9001/assets/javascripts/angular.min.js:73
  
  &lt;!-- ngRepeat: row in score track by $index | limitTo:5 | reverse --&gt;
  </code></pre>