contact_search_component.html 386 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
<div id="search-component">
    <input #searchBox id="search-box"
           placeholder="Search"
           (change)="search(searchBox.value)"
           (keyup)="search(searchBox.value)" />
    <div>
        <div *ngFor="let contact of contacts | async"
             (click)="contact.delete()" class="search-result" >
            {{contact.nickname}}
        </div>
    </div>
</div>