I render table like so (there are many more fields):
<tr ng-repeat="client in clients">
<td>{{client.name}}</td>
<td>£{{client.total}}</td>
//...
</tr>
The model (clients) changes in the controller often (an ng-click handler changes the data in the $scope). I would like to highlight all cells that has changed.
A highly related question on SO is this, but it introduces new markup (highlighter="person.firstName"
) on each element, whereas I simply want AngularJS to highlight any change on the table; that is, every time the DOM changes, I wish to add a highlight class.
How can this be achieved?