Skip to content

Commit

Permalink
Step 3.5: Change the parties controller to use $reactive and this i…
Browse files Browse the repository at this point in the history
…nstead of `$scope`
  • Loading branch information
Kamil Kisiela authored and Dotan Simha committed Nov 22, 2016
1 parent f335792 commit 816640b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions client/main.js
Expand Up @@ -5,10 +5,12 @@ import { Parties } from '../collections/parties';
angular.module('socially', [
angularMeteor
])
.controller('PartiesListCtrl', function($scope) {
.controller('PartiesListCtrl', function($scope, $reactive) {
'ngInject';

$scope.helpers({
$reactive(this).attach($scope);

this.helpers({
parties() {
return Parties.find({});
}
Expand Down

0 comments on commit 816640b

Please sign in to comment.