There is a specific template that I consistently reference 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>
I am looking to target all elements with class="content"
within each instance of the template so that I can make changes to them dynamically.
What is the best way to accomplish this using JavaScript?
EDIT :
In the Plunker, the console.log should ideally output "1" twice, but instead it displays "1" first and then "2" when the second template loads.