Skip to content

Commit

Permalink
Step 13.5: Create PartyUninvited component
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 a033b89 commit 132edb5
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions imports/ui/components/partyUninvited/partyUninvited.js
@@ -0,0 +1,34 @@
import angular from 'angular';
import angularMeteor from 'angular-meteor';

import { Meteor } from 'meteor/meteor';

import template from './partyUninvited.html';

class PartyUninvited {
constructor($scope) {
'ngInject';

$scope.viewModel(this);

this.helpers({
users() {
return Meteor.users.find({});
}
});
}
}

const name = 'partyUninvited';

// create a module
export default angular.module(name, [
angularMeteor
]).component(name, {
template,
controllerAs: name,
bindings: {
party: '<'
},
controller: PartyUninvited
});

0 comments on commit 132edb5

Please sign in to comment.