Can you provide advice on how to highlight a specific row in a table?
I have a table along with some angular code snippets. Here's an example:
angular.module('myApp', []).controller('myTest', function($scope) {
var data = [];
for(var i = 0; i < 10; i++) {
data[i] = i;
}
$scope.data = data;
});
HTML:
<table ng-app="myApp" ng-controller="myTest">
<tr ng-repeat="x in data">
<td > {{ x }} </td>
</tr>
</table>
http://jsfiddle.net/omarjmh/Lvc0u55v/1895/
Is there a way to apply CSS to highlight a row when a condition is met, like changing the color to blue if x equals 1?
Thank you!