Skip to content

Commit

Permalink
Step 3.11: Use PartiesList from imports
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 4626227 commit 1837037
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions client/main.js
Expand Up @@ -2,21 +2,9 @@ import angular from 'angular';
import angularMeteor from 'angular-meteor';
import { Parties } from '../collections/parties';

angular.module('socially', [
angularMeteor
])
.component('partiesList', {
templateUrl: 'client/partiesList.html',
controllerAs: 'partiesList',
controller($scope, $reactive) {
'ngInject';

$reactive(this).attach($scope);
import { name as PartiesList } from '../imports/ui/components/partiesList/partiesList';

this.helpers({
parties() {
return Parties.find({});
}
});
}
});
angular.module('socially', [
angularMeteor,
PartiesList
]);

0 comments on commit 1837037

Please sign in to comment.