Navigation Menu

Skip to content

Commit

Permalink
Step 13.12: Add event handler for pageChange
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilkisiela authored and dotansimha committed Nov 27, 2016
1 parent a777488 commit 3fdc0e9
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 @@ -84,6 +84,10 @@ export class PartiesListComponent implements OnInit, OnDestroy {
this.parties = Parties.find(value ? { location: value } : {}).zone();
}

onPageChanged(page: number): void {
this.curPage.next(page);
}

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

0 comments on commit 3fdc0e9

Please sign in to comment.