homework/ng1/app/search.html

35 lines
793 B
HTML
Raw Normal View History

2017-04-30 20:02:47 +03:00
<input id="search-string" ng-model="vm.searchString"/>
<br /><br />
<table class="list-table">
<thead>
<tr>
<th>Nimi</th>
<th>Telefon</th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
<tr ng-class="{ selected : contact.selected }"
data-ng-repeat="contact in vm.contacts | filter : vm.nameCodeFilter">
<td>
<a href="#/edit/{{ contact._id }}" class="edit-link">{{ contact.name }}</a>
</td>
<td>
{{ contact.phone }}
</td>
<td>
<a href ng-click="vm.deleteContact(contact._id)" class="delete-link">Kustuta</a>
</td>
<td>
<input ng-model="contact.selected" type="checkbox">
</td>
</tr>
</tbody>
</table>
<br><br>