Skip to content

Commit

Permalink
Step 13.17: Add the sort order dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilkisiela authored and DAB0mB committed Dec 14, 2016
1 parent 8c2fb2b commit 819701a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions client/imports/app/parties/parties-list.component.html
Expand Up @@ -5,6 +5,15 @@

<login-buttons></login-buttons>

<h1>Parties:</h1>

<div>
<select #sort (change)="changeSortOrder(sort.value)">
<option value="1" selected>Ascending</option>
<option value="-1">Descending</option>
</select>
</div>

<ul>
<li *ngFor="let party of parties | async">
<a [routerLink]="['/party', party._id]">{{party.name}}</a>
Expand Down

0 comments on commit 819701a

Please sign in to comment.