From fd1ca59da41174b010f90a5727ea7c57a15962d9 Mon Sep 17 00:00:00 2001 From: Kamil Kisiela Date: Thu, 7 Apr 2016 10:32:56 +0200 Subject: [PATCH] Step 3.18: Create Socially component --- imports/ui/components/socially/socially.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 imports/ui/components/socially/socially.js diff --git a/imports/ui/components/socially/socially.js b/imports/ui/components/socially/socially.js new file mode 100644 index 000000000..2a99481a6 --- /dev/null +++ b/imports/ui/components/socially/socially.js @@ -0,0 +1,19 @@ +import angular from 'angular'; +import angularMeteor from 'angular-meteor'; + +import template from './socially.html'; +import { name as PartiesList } from '../partiesList/partiesList'; + +class Socially {} + +const name = 'socially'; + +// create a module +export default angular.module(name, [ + angularMeteor, + PartiesList +]).component(name, { + template, + controllerAs: name, + controller: Socially +});