Skip to content

Commit

Permalink
Step 7.3: Add submit event handler
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilkisiela authored and DAB0mB committed Dec 14, 2016
1 parent 7857cd9 commit 48878dc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions client/imports/app/parties/party-details.component.ts
Expand Up @@ -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();
}
Expand Down

0 comments on commit 48878dc

Please sign in to comment.