Created
May 7, 2018 13:20
-
-
Save jlaine/65fe2d8e2b8b816aec25650406b5f171 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 class="container" [formGroup]="filterForm"> | |
<div class="search-bar"> | |
<input formControlName="search" placeholder="Search by pony name"> | |
<select formControlName="is_available"> | |
<option [value]="null">Is available?</option> | |
<option [value]="true">Yes</option> | |
<option [value]="false">No</option> | |
</select> | |
</div> | |
<div *ngFor="let pony of (page | async)?.results" [ngClass]="{'available': pony.is_available, 'pony': true}"> | |
{{ pony.name }} | |
</div> | |
<app-paginator [page]="page | async" (pageChange)="onPageChanged($event)"></app-paginator> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment