Skip to content

Commit

Permalink
Step 23.18: Switch to MeteorComponent API
Browse files Browse the repository at this point in the history
  • Loading branch information
DAB0mB committed Dec 14, 2016
1 parent 9cbb845 commit f2d7b9f
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions imports/ui/components/partyUninvited/partyUninvited.ts
Expand Up @@ -12,16 +12,11 @@ import template from './partyUninvited.html';
selector: 'party-uninvited'
})
export class PartyUninvited extends MeteorComponent {
constructor($scope) {
'ngInject';
constructor() {
super();

$scope.viewModel(this);

this.helpers({
users() {
return Meteor.users.find({});
}
this.autorun(() => {
this.users = Meteor.users.find({}).fetch();
});
}

Expand Down

0 comments on commit f2d7b9f

Please sign in to comment.