i399exng1/app/list.html

10 lines
345 B
HTML
Raw Normal View History

2017-04-20 09:49:26 +03:00
<div ng-repeat="item in vm.items">
<span ng-class="{ done: item.done }">
<a href="#/details/{{ item._id }}">{{ item.title }}</a>
</span>
<input type="checkbox" ng-model="item.done">
<button ng-click="vm.removeItem(item._id)">X</button>
</div>
<input ng-model="vm.newItem">
<button ng-click="vm.addNew()">Add new</button>