Angular: Empty Fiddle
http://angularjs.org/
by lchau
HTML
<div ng-controller="MyCtrl">
<table>
<tr ng-repeat="person in people" ng-class="rowClass(person)">
<td>{{ person.name }}</td>
</tr>
</table>
</div>
CSS
.bob { color: red }
JavaScript
var myApp = angular.module('myApp',[]);
function MyCtrl($scope) {
$scope.people = [{
name: 'bob'
}, {
name: 'mary'
}];
$scope.rowClass = function(person){
return person.name;
};
}