Skip to content

Commit

Permalink
Step 13.18: Re-subscribe when sort order changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilkisiela authored and dotansimha committed Nov 27, 2016
1 parent 199b877 commit f8eced6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/imports/app/parties/parties-list.component.ts
Expand Up @@ -96,6 +96,10 @@ export class PartiesListComponent implements OnInit, OnDestroy {
this.curPage.next(page);
}

changeSortOrder(nameOrder: string): void {
this.nameOrder.next(parseInt(nameOrder));
}

ngOnDestroy() {
this.partiesSub.unsubscribe();
this.optionsSub.unsubscribe();
Expand Down

0 comments on commit f8eced6

Please sign in to comment.