index.html 2.74 KB
Newer Older
Pavel Savara's avatar
Pavel Savara committed
1
<!doctype html>
2
<html lang="en" ng-app="todomvc" data-framework="typescript">
3 4 5
	<head>
		<meta charset="utf-8">
		<title>Typescript & AngularJS • TodoMVC</title>
6 7
		<link rel="stylesheet" href="node_modules/todomvc-common/base.css">
		<link rel="stylesheet" href="node_modules/todomvc-app-css/index.css">
8 9 10
		<style>[ng-cloak] { display: none; }</style>
	</head>
	<body>
11 12
		<section class="todoapp" ng-controller="todoCtrl">
			<header class="header">
13
				<h1>todos</h1>
14 15
				<form class="todo-form" ng-submit="vm.addTodo()">
					<input class="new-todo" placeholder="What needs to be done?" ng-model="newTodo" autofocus>
16 17
				</form>
			</header>
18 19
			<section class="main" ng-show="todos.length" ng-cloak>
				<input class="toggle-all" type="checkbox" ng-model="allChecked" ng-click="vm.markAll(!allChecked)">
20
				<label for="toggle-all">Mark all as complete</label>
21
				<ul class="todo-list">
22
					<li ng-repeat="todo in todos | filter:statusFilter track by $index" ng-class="{completed: todo.completed, editing: todo == editedTodo}">
23 24
						<div class="view">
							<input class="toggle" type="checkbox" ng-model="todo.completed">
25 26
							<label ng-dblclick="vm.editTodo(todo)">{{todo.title}}</label>
							<button class="destroy" ng-click="vm.removeTodo(todo)"></button>
27
						</div>
28 29
						<form ng-submit="vm.doneEditing(todo)">
							<input class="edit" ng-model="todo.title" todo-blur="vm.doneEditing(todo)" todo-focus="todo == editedTodo">
30 31 32 33
						</form>
					</li>
				</ul>
			</section>
34 35
			<footer class="footer" ng-show="todos.length" ng-cloak>
				<span class="todo-count"><strong>{{remainingCount}}</strong>
36 37
					<ng-pluralize count="remainingCount" when="{ one: 'item left', other: 'items left' }"></ng-pluralize>
				</span>
38
				<ul class="filters">
39 40 41 42 43 44 45 46 47 48
					<li>
						<a ng-class="{selected: location.path() == '/'} " href="#/">All</a>
					</li>
					<li>
						<a ng-class="{selected: location.path() == '/active'}" href="#/active">Active</a>
					</li>
					<li>
						<a ng-class="{selected: location.path() == '/completed'}" href="#/completed">Completed</a>
					</li>
				</ul>
49
				<button class="clear-completed" ng-click="vm.clearDoneTodos()" ng-show="doneCount">Clear completed</button>
50 51
			</footer>
		</section>
52
		<footer class="info">
53 54 55 56 57
			<p>Double-click to edit a todo</p>
			<p>Credits:
					<a href="http://twitter.com/cburgdorf">Christoph Burgdorf</a>,
					<a href="http://ericbidelman.com">Eric Bidelman</a>,
					<a href="http://jacobmumm.com">Jacob Mumm</a>
Felipe de Araujo's avatar
Felipe de Araujo committed
58
					<a href="http://blog.igorminar.com">Igor Minar</a> and
59
					<a href="http://zamboch.blogspot.com">Pavel Savara</a>
60
			</p>
61
		</footer>
62 63
		<script src="node_modules/todomvc-common/base.js"></script>
		<script src="node_modules/angular/angular.js"></script>
64 65
		<script src="js/Application.js"></script>
	</body>
Pavel Savara's avatar
Pavel Savara committed
66
</html>