Permalink
Browse files

Step 10.13: Add search method

1 parent 9a1b02f commit 31b254fa82d7c9ef6a335b7bbde593d3737ae827 @kamilkisiela kamilkisiela committed with DAB0mB Sep 22, 2016
Showing with 4 additions and 0 deletions.
  1. +4 −0 client/imports/app/parties/parties-list.component.ts
@@ -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();
}

0 comments on commit 31b254f

Please sign in to comment.