Last active
April 9, 2018 19:13
-
-
Save AhsanAyaz/3d190c96e69c6ad3a51e99cbea2c6722 to your computer and use it in GitHub Desktop.
AppComponent's view for NgKeyListDemo app
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 class="users-page"> | |
<div class="users-page__loading" *ngIf="isLoadingUsers"> | |
Loading Users | |
</div> | |
<div class="users-age__main" *ngIf="!isLoadingUsers"> | |
<h3 class="users-page__main__heading"> | |
Users List | |
</h3> | |
<div class="users-page__main__search"> | |
<input type="text" [(ngModel)]="searchQuery" placeholder="search users by name" (keyup)="handleKeyUp($event)"> | |
</div> | |
<div class="users-page__main__list"> | |
<app-list-item | |
*ngFor="let user of users | filterByName: searchQuery" | |
class="users-page__main__list__item" | |
[item]="user" | |
(itemSelected)="showUserInfo($event)"> | |
</app-list-item> | |
</div> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment