i399exng1/app/list.html
2017-03-13 12:29:29 +02:00

10 lines
347 B
HTML

<div data-ng-repeat="task in vm.tasks">
<span ng-class="{ done: task.done }" ><a href="#/details/{{ task._id }}" >{{ task.title }}</a></span>
<input type="checkbox" ng-model="task.done"/><a href ng-click="vm.removeTask(task._id)">X</a>
</div><br>
<input ng-model="vm.newTitle"/>
<button ng-click="vm.addTask(newTask)">Add task</button>