done state
This commit is contained in:
9
app/list.html
Normal file
9
app/list.html
Normal file
@@ -0,0 +1,9 @@
|
||||
<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>
|
||||
|
||||
Reference in New Issue
Block a user