My HTML code looks like this:
<div>
<i class="glyphicon glyphicon-envelope"
style="margin-top: -50px; cursor:pointer; color: #1F45FC"
ng-click="createComment(set_id)">
</i> Route
<center>
<span class="route_no">{{set_id}}</span>
</center>
</div>
<div>
<center>Status: {{set.total_one}}/{{set.total_two}}</center>
</div>
This content is part of an ng-repeat="set in settings"
I am trying to dynamically change the color of my
<i class="glyphicon glyphicon-envelope">
based on a condition set in the JavaScript controller.
I am encountering difficulties in linking each icon with an index so that AngularJS can target specific icons for color changes.