2
How do I color the selected line in a table?
I have the following code:
<tr ng-repeat="p in produtos" ng-click="info(p)"
ng-class="{'info': ??}">
I’m just not able to find a condition to color only the selected line.
Someone has an idea?
With selected row you meant the line on which the mouse is over, or on your object
p
will have some property that will say that?– Pedro Camara Junior
The line I clicked with the mouse, in case the angular has the $index that returns the position that is selected, I would like to color that line.
– Geferson