ng-class it is possible to set classes, if the value==trueng-class="{strike: strike, bold: bold, red: red}input type="checkbox" ng-model="red", ...
$index - in ng-repeat returns index.$scope.selectRestaurant = function(row) {$scope.selectedRow = row;};
Each restaurant has the class ng-class='{selected: $index==selectedRow}',
so the selected restaurant gets the class='selected'. Click is implemented with ng-click:
ng-click='selectRestaurant($index)'.
| {{$index +1}} | {{restaurant.name}} | {{restaurant.cuisine}} |