AngularJS Simple Demo

by Dipak1991

HTML

<link rel="stylesheet" href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css">
<body ng-app="myApp" ng-controller="myController">
    <ul ng-repeat="x in names">
        <li>{{ x }}</li>
    </ul>
</body>

CSS

.done-true {
    text-decoration: line-through;
    color: grey;
}

JavaScript

var myApp = angular.module("myApp", []);

myApp.controller("myController", function ($scope) {
    $scope.names = ['a', 'b'];
});