I want to change my background-color to lightblue when the value of the checkbox is true, and change the background-color back to normal when the value is false.
<tr ng-repeat="item in rows | filter:search" ng-class="{'selected':$index == selectedRow}">
My Checkbox:
<td><input type="checkbox" ng-click="setClickedRow($index)"></td>
My Function:
$scope.selected = null;
$scope.setClickedRow = function(index){
$scope.selectedRow = index;
}