docs: update hero search component to use input event (#26440)

PR Close #26440
This commit is contained in:
Nikhil Sharma
2018-10-15 02:23:19 +05:30
committed by Andrew Kushnir
parent 19546c234e
commit 0d972d9bbf
3 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
<div id="search-component">
<h4>Hero Search</h4>
<input #searchBox id="search-box" (keyup)="search(searchBox.value)" />
<input #searchBox id="search-box" (input)="search(searchBox.value)" />
<ul class="search-result">
<li *ngFor="let hero of heroes | async" >