title: Angularjs - ng-repeat generating empty elements
body: <p>I have a array which have improper key order, like</p>
  
  <pre><code>1: Array[1]
  2: Array[2]
  4: Array[3]
  7: Array[14]
  21: Array[1]
  22: Array[1]
  23: Array[1] 
  </code></pre>
  
  <p>So when I iterate using <code>ng-repeat</code>, empty elements and generated for key values which are not there.</p>
  
  <p>So here it will generate elements for keys 1 and 2, and as there is no key 3, it will generate an empty div there.Same happens after 4.three empty elements are generated.How can this be fixed ?</p>