AngularJS Example:
by whtevn
HTML
<script src="http://code.angularjs.org/1.0.3/angular.js"></script>
<div ng-app="test" id="test">
<ul ng-controller="TestCtl">
<li ng-repeat="item in items" ng-class="{0:'regular', 1:'highlight'}[item.checked]">
<input type="checkbox"> {{item.name}}
</li>
</ul>
</div>
CSS
.highlight { background: #999; }
.regular { background: #fff; }
JavaScript
var test = angular.module('test', []);
test.controller('TestCtl', ['$scope', function($scope){
$scope.items = [
{name: 'hello', checked: 0},
{name: 'second', checked: 1},
{name: 'third', checked: 0}
];
}]);