Rule Definition
Ensure your web application interactivity by accessing/manipulating the DOM tree with high performance queries/enumerators.
Remediation
Ensure you have added "track by" syntax into your ngRepeat block
Violation Code Sample
<ul class="tasks">
<li ng-repeat="task in tasks" ng-class="{done: task.done}">
{{task.id}}: {{task.title}}
</li>
</ul>
Fixed Code Sample
<ul class="tasks">
<li ng-repeat="task in tasks track by task.id" ng-class="{done: task.done}">
{{task.id}}: {{task.title}}
</li>
</ul>
Reference
https://docs.angularjs.org/api/ng/directive/ngRepeat#tracking-and-duplicates
OMG CISQ
Related Technologies
Technical Criterion
CWE-1050 - Excessive Platform Resource Consumption within a Loop
About CAST Appmarq
CAST Appmarq is by far the biggest repository of data about real IT systems. It's built on thousands of analyzed applications, made of 35 different technologies, by over 300 business organizations across major verticals. It provides IT Leaders with factual key analytics to let them know if their applications are on track.