I want to do this…
<span ng-repeat="item in array1" ng-include="'genericItemTemplate.html'">
and this…
<span ng-repeat="item in array2" ng-include="'genericItemTemplate.html'">
and then in the genericItemTemplate.. do this…
[{{$index + 1}} of {{someArrayreference.length}}]
can I reference the array of the ng-repeat within the template?
see also my longer post… https://groups.google.com/forum/?fromgroups=#!topic/angular/y_KuX0HRQ_U
and my plunkr
http://plnkr.co/edit/dY7M76kPyLeK0fvVZhvB
Michael
Use onload, an ng-include optional parameter:
Output: