title: AngularJS digits in $index
body: <p>Say for example I have the following code (pseudo):</p>
  
  <pre><code>&lt;div ng-repeat=range&gt;{{ $index }}&lt;/div&gt;
  </code></pre>
  
  <p>The result would be </p>
  
  <p><code>1 2 3 4 5 6 ...</code></p>
  
  <p>How could I go about changing the code above so that the indexes are printed</p>
  
  <p><code>001 002 003 004 005 006</code>? (so that the index is printed as 3 digits)</p>