Skip to content

Commit

Permalink
Step 10.13: Add search method
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilkisiela authored and dotansimha committed Nov 27, 2016
1 parent 7ee70b4 commit 50cff2c
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 @@ -25,6 +25,10 @@ export class PartiesListComponent implements OnInit, OnDestroy {
Parties.remove(party._id);
}

search(value: string): void {
this.parties = Parties.find(value ? { location: value } : {}).zone();
}

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

0 comments on commit 50cff2c

Please sign in to comment.