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 DAB0mB committed Dec 14, 2016
1 parent 819701a commit 076691d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/imports/app/parties/parties-list.component.ts
Original file line number Diff line number Diff line change
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 076691d

Please sign in to comment.