Last active
January 7, 2019 21:50
-
-
Save NishuGoel/e6d30527ff240e2ea03ff547da0b7e62 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div align = "center"> | |
<h1>INSTANT SEARCH DEMO</h1><br><br><br> | |
Search <input type = "text" [(ngModel)] = "searchterm" (keydown) ="search($event)" id = "search" placeholder="Search by name"> | |
</div> | |
<div *ngFor="let name of names"> | |
<ul> | |
<p> {{name.name}}, {{name.Profession}} </p> | |
</ul> | |
</div> | |
<div *ngIf = "names?.length<1"> | |
<p>Try searching by name</p> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment