File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
.docs/angular-meteor/client/views/api Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change 56
56
57
57
58
58
The `meteor-include` directive holds the Angular scope of the directive as the
59
- as [Template.currentData](http://docs.meteor.com/#/full/template_currentdata) of the Meteor template,
60
- names it `$scope` and update it reactively.
59
+ as [Template.currentData](http://docs.meteor.com/#/full/template_currentdata) of the Meteor template.
61
60
62
61
63
62
#### Example using scope data
@@ -116,16 +115,9 @@ <h1>Inside Angular</h1>
116
115
117
116
}]);
118
117
119
- Template.partiesBlazeTemplate.onCreated(function () {
120
- // getAngularScope is a helper function supplied by angular-meteor
121
- getAngularScope(this);
122
- });
123
-
124
118
Template.partiesBlazeTemplate.helpers({
125
119
parties: function() {
126
- // Make sure scope is already defined as Blaze loads before Angular
127
- if (Template.instance().$scope)
128
- return Template.instance().$scope.parties
120
+ return Template.currentData().getReactively('parties', true);
129
121
}
130
122
});
131
123
}
You can’t perform that action at this time.
0 commit comments