Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

38 lines (32 sloc) 1013 Bytes
<!DOCTYPE html>
<meta charset="utf-8">
<title>Things To Do</title>
<link rel="stylesheet" href="bootstrap/css/bootstrap.css">
<script type="text/javascript" src="angular.js"></script>
<script type="text/javascript" src="angular-resource.js"></script>
<script type="text/javascript" src="todo.js"></script>
<style type="text/css">
.done-true {
color: gray;
text-decoration: line-through;
<body ng-app="todo" ng-controller="App" class="well">
<h1>Things To Do</h1>
Remaining <strong>{{remaining()}}</strong> of <strong>{{items.length}}</strong>.
[ <a ng-click="archive()">archive</a> ]
<ul class="unstyled">
<li ng-repeat="item in items" class="done-{{item.done}}">
<input type="checkbox" ng-model="item.done" ng-change="item.$update()"> {{item.text}}</li>
<input type="text" ng-model="newText">
<button ng-disabled="!newText" ng-click="add()" class="btn btn-primary">add</button>
Jump to Line
Something went wrong with that request. Please try again.