CSS:
.seleted{background-color:lightgreen}
.modified{font-weight:bold;color:chocolate}
html:
<div class='row' ng-repeat="item in items" style="width:650px;"
ng-class='{selected:$index==selectedRow,modefied:$index==addedRow}'
ng-click='selectRestaurant($index)'>/
</div>
JS:
指定行号,套用css样式
$scope.selectedRow=i;
$scope.addedRow=i;
或
$scope.selectRestaurant=function(row){$scope.selectedRow=row;};