http://www.ecofic.com/about/blog/conditionally-apply-a-css-class-with-angularjs
<div ng-repeat="team in teams"
ng-class="{'checkedClass': team.isChecked, 'uncheckedClass': !team.isChecked}">
<label>
<input type="checkbox"ng-model="team.isChecked"/>
<span>{{team.name}}</span>
</label>
</div>
http://www.knwldg.tv/angularjs/ng-class-directive/
<!doctype html>
<html ng-app>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.6/angular.min.js"></script>
</head>
<body>
<style>
.selected { background-color: lightgreen; }
</style>
<table ng-controller='MenuController'>
<tr ng-repeat='restaurant in directory'
ng-click='selectRestaurant($index)'
ng-class='{selected: $index==selectedRow}'>
<td>{{restaurant.name}}</td>
<td>{{restaurant.cuisine}}</td>
</tr>
</table>
<script>
function MenuController($scope)
{
$scope.directory = [{name:'The Handsome Heifer', cuisine:'BBQ'},
{name:"Green's Green Greens", cuisine:'Salads'},
{name:'House of Fine Fish', cuisine:'Seafood'}];
$scope.selectRestaurant = function(row) {
$scope.selectedRow = row;
};
}
</script>
</body>
</html>