AngularJS Example:

by Sherali Turdiyev

HTML

<link rel="stylesheet" href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css">
<div ng-app>
     <h2>Todo</h2>

    <div ng-controller="TodoCtrl">
        <div ng-repeat="date in dates">{{date | date:'MMM-dd'}}</div>
        <br/>
    </div>
</div>

CSS

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

JavaScript

function TodoCtrl($scope) {

    var count = new Date();
    $scope.dates = [];
    for (var i = 1; i <= 365; i++) {

        $scope.dates.push(count);
var next = new Date();
        next.setTime(count.getTime()+(1000*3600*24))
        count = next;
    }
}