From 18370375bb211dfc8f5893c5a42697d4391f6410 Mon Sep 17 00:00:00 2001 From: Kamil Kisiela Date: Thu, 7 Apr 2016 10:27:59 +0200 Subject: [PATCH] Step 3.11: Use PartiesList from imports --- client/main.js | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/client/main.js b/client/main.js index 33040cd99..646a86f72 100644 --- a/client/main.js +++ b/client/main.js @@ -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 + ]);