Implement duck search by color
This is a very rough thing. In the final version it should provide resilts with similar colors. Signed-off-by: Gergely Polonkai <gergely@polonkai.eu>
This commit is contained in:
11
app/duck-search.component.html
Normal file
11
app/duck-search.component.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<div id="search-component">
|
||||
<h4>Duck search</h4>
|
||||
<input #searchBox id="search-box" (keyup)="search(searchBox.value)">
|
||||
<div>
|
||||
<div *ngFor="let duck of ducks | async"
|
||||
(click)="gotoDetail(duck)"
|
||||
class="search-result">
|
||||
{{ duck.color }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
Reference in New Issue
Block a user