Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Step 3.2: Add the parties collection helper
  • Loading branch information
Kamil Kisiela authored and DAB0mB committed Dec 14, 2016
1 parent 0eee3a5 commit 6ae8b0d
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions client/main.js
@@ -1,20 +1,16 @@
import angular from 'angular';
import angularMeteor from 'angular-meteor';
import { Parties } from '../collections/parties';

angular.module('socially', [
angularMeteor
])
.controller('PartiesListCtrl', function($scope) {
'ngInject';

$scope.parties = [{
'name': 'Dubstep-Free Zone',
'description': 'Can we please just for an evening not listen to dubstep.'
}, {
'name': 'All dubstep all the time',
'description': 'Get it on!'
}, {
'name': 'Savage lounging',
'description': 'Leisure suit required. And only fiercest manners.'
}];

$scope.helpers({
parties() {
return Parties.find({});
}
});
});

0 comments on commit 6ae8b0d

Please sign in to comment.