Skip to content

Commit

Permalink
Step 4.12: Insert new party
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamil Kisiela authored and DAB0mB committed Dec 14, 2016
1 parent 0490fb5 commit 04adfbf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion imports/ui/components/partyAdd/partyAdd.js
Expand Up @@ -2,14 +2,20 @@ import angular from 'angular';
import angularMeteor from 'angular-meteor';

import template from './partyAdd.html';
import { Parties } from '../../../api/parties';

class PartyAdd {
constructor() {
this.party = {};
}

submit() {
console.log('submit:', this.party);
Parties.insert(this.party);
this.reset();
}

reset() {
this.party = {};
}
}

Expand Down

0 comments on commit 04adfbf

Please sign in to comment.