Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Step 3.2: Add the parties collection helper
- Loading branch information
Kamil Kisiela
authored and
Dotan Simha
committed
Nov 22, 2016
1 parent
c4ea292
commit c33979c
Showing
1 changed file
with
7 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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({}); | ||
} | ||
}); | ||
}); |