Permalink
Browse files

Step 7.3: Add submit event handler

  • Loading branch information...
1 parent 7857cd9 commit 48878dcd19a42d573841fd0d9a5d99ab3b4e4500 @kamilkisiela kamilkisiela committed with DAB0mB Sep 21, 2016
Showing with 10 additions and 0 deletions.
  1. +10 −0 client/imports/app/parties/party-details.component.ts
@@ -32,6 +32,16 @@ export class PartyDetailsComponent implements OnInit, OnDestroy {
});
}
+ saveParty() {
+ Parties.update(this.party._id, {
+ $set: {
+ name: this.party.name,
+ description: this.party.description,
+ location: this.party.location
+ }
+ });
+ }
+
ngOnDestroy() {
this.paramsSub.unsubscribe();
}

0 comments on commit 48878dc

Please sign in to comment.