title: angularjs How can I access the ng-repeat array from within my item template
body: <p>I want to do this...</p>
  
  <pre><code>&lt;span ng-repeat="item in array1" ng-include="'genericItemTemplate.html'"&gt;
  </code></pre>
  
  <p>and this...</p>
  
  <pre><code>&lt;span ng-repeat="item in array2" ng-include="'genericItemTemplate.html'"&gt;
  </code></pre>
  
  <p>and then in the genericItemTemplate.. do this...</p>
  
  <pre><code>[{{$index + 1}} of {{someArrayreference.length}}]
  </code></pre>
  
  <p>can I reference the array of the ng-repeat within the template?</p>
  
  <p>see also my longer post... <a href="https://groups.google.com/forum/?fromgroups=#!topic/angular/y_KuX0HRQ_U" rel="nofollow">https://groups.google.com/forum/?fromgroups=#!topic/angular/y_KuX0HRQ_U</a></p>
  
  <p>and my plunkr</p>
  
  <p><a href="http://plnkr.co/edit/dY7M76kPyLeK0fvVZhvB" rel="nofollow">http://plnkr.co/edit/dY7M76kPyLeK0fvVZhvB</a></p>
  
  <p>Michael</p>