title: Angular ng-repeat Error "Duplicates in a repeater are not allowed."
body: <p>I am defining a custom filter like so:</p>
  
  <pre><code>&lt;div class="idea item" ng-repeat="item in items" isoatom&gt;    
      &lt;div class="section comment clearfix" ng-repeat="comment in item.comments | range:1:2"&gt;
          ....
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>As you can see the ng-repeat where the filter is being used is nested within another ng-repeat</p>
  
  <p>The filter is defined like this:</p>
  
  <pre><code>myapp.filter('range', function() {
      return function(input, min, max) {
          min = parseInt(min); //Make string input int
          max = parseInt(max);
          for (var i=min; i&lt;max; i++)
              input.push(i);
          return input;
      };
  });
  </code></pre>
  
  <p>I'm getting:</p>
  
  <blockquote>
    <p>Error: Duplicates in a repeater are not allowed. Repeater: comment in item.comments | range:1:2 ngRepeatAction@<a href="https://ajax.googleapis.com/ajax/libs/angularjs/1.1.4/an">https://ajax.googleapis.com/ajax/libs/angularjs/1.1.4/an</a></p>
  </blockquote>