AngularJS Example:
by Arthur Lutkevichus
HTML
<link rel="stylesheet" href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css">
<div ng-app>
<div ng-controller="TodoCtrl">
<h1>List</h1>
<div ng-repeat="t in todos | filter : true">{{t.text}}</div>
</div>
</div>
CSS
.done-true {
text-decoration: line-through;
color: grey;
}
JavaScript
function TodoCtrl($scope) {
$scope.todos = [{
text: 'learn angular',
done: true,
id: 1
}, {
text: 'build an angular app',
done: false,
id: 2
}];
$scope.idToFilter = 1;
}