There's this template that I call multiple times on the same page:
<div ng-controller="templateController">
<div class="source">
<div ng-repeat="item in info">
<div class="content" data-value="{{item.ID}}">{{item.name}}</div>
</div>
</div>
<br style="clear:both" />
<div class="receiver"></div>
</div>
and then I want to select all the elements with class="content"
within each template scope in order to manipulate them.
How can I achieve this using JS?
EDIT :
In this planker the console.log should print "1" twice and its printing "1" and then "2" when the template loads the second time