Dataset/JS/ToDoApp_AngularJS/index.html (66 lines of code) (raw):

<!doctype html> <html lang="en" data-framework="angularjs"> <head> <meta charset="utf-8"> <title>AngularJS & RequireJS • TodoMVC</title> <link rel="stylesheet" href="node_modules/todomvc-common/base.css"> <link rel="stylesheet" href="node_modules/todomvc-app-css/index.css"> <style>[ng-cloak] { display: none; }</style> </head> <body> <section class="todoapp" ng-controller="TodoController"> <header class="header"> <h1>todos</h1> <form class="todo-form" ng-submit="addTodo()"> <input class="new-todo" placeholder="What needs to be done?" ng-model="newTodo" autofocus> </form> </header> <section class="main" ng-show="todos.length" ng-cloak> <input id="toggle-all" class="toggle-all" type="checkbox" ng-model="allChecked" ng-click="markAll(allChecked)"> <label for="toggle-all">Mark all as complete</label> <ul class="todo-list"> <li ng-repeat="todo in todos | filter:statusFilter track by $index" ng-class="{completed: todo.completed, editing: todo == editedTodo}"> <div class="view"> <input class="toggle" type="checkbox" ng-model="todo.completed"> <label ng-dblclick="editTodo(todo)">{{todo.title}}</label> <button class="destroy" ng-click="removeTodo(todo)"></button> </div> <form ng-submit="doneEditing(todo)"> <input class="edit" ng-trim="false" ng-model="todo.title" ng-blur="doneEditing(todo)" todo-escape="revertEditing(todo)" todo-focus="todo == editedTodo"> </form> </li> </ul> </section> <footer class="footer" ng-show="todos.length" ng-cloak> <span class="todo-count"><strong>{{remainingCount}}</strong> <ng-pluralize count="remainingCount" when="{ one: 'item left', other: 'items left' }"></ng-pluralize> </span> <ul class="filters"> <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> <button class="clear-completed" ng-click="clearDoneTodos()" ng-show="remainingCount < todos.length">Clear completed</button> </footer> </section> <footer class="info"> <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>, <a href="http://blog.igorminar.com">Igor Minar</a> and <a href="http://twitter.com/passy">Pascal Hartig</a> </p> <p>Part of <a href="http://todomvc.com">TodoMVC</a></p> </footer> <script src="node_modules/todomvc-common/base.js"></script> <script data-main="js/main" src="node_modules/requirejs/require.js"></script> </body> </html>