im pretty new to angular and im sorry if this a noob question. I have a list rendered by ng repeat and i want to modify the first occurance of the element which has a particluar attribute set as "Y".
<tr ng-repeat="player in player_history" >
<td>....</td>
<td>....</td>
</tr>
player_history = [
{
"value" : "10",
"description" : "rooney"
"award" : "y"
},
{
"value" : "7",
"description" : "di maria"
"award" : "N"
},
{
"value" : "1",
"description" : "de gea"
"award" : "N"
},
{
"value" : "16",
"description" : "carrick"
"award" : "Y"
},
];
so for the first occurrance of award as "Y", i want to make some modifications to the that element. like for example display the results in the table and lets say make that particular entry in bold. im still a newbe so all the help is much appreciated. and thank you very much in advance .
PS: i was also thinking along the lines to let ng-repeat do the rendering and then use Jquery to modify as i wanted.ive been trying but nothing so far.Thank you once again.