Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Step 6.1: Add party helper
  • Loading branch information
Kamil Kisiela authored and DAB0mB committed Dec 14, 2016
1 parent f06dc71 commit 34f1a60
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion imports/ui/components/partyDetails/partyDetails.js
Expand Up @@ -3,12 +3,23 @@ import angularMeteor from 'angular-meteor';
import uiRouter from 'angular-ui-router';

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

class PartyDetails {
constructor($stateParams) {
constructor($stateParams, $scope, $reactive) {
'ngInject';

$reactive(this).attach($scope);

this.partyId = $stateParams.partyId;

this.helpers({
party() {
return Parties.findOne({
_id: $stateParams.partyId
});
}
});
}
}

Expand Down

0 comments on commit 34f1a60

Please sign in to comment.