@@ -107,6 +107,7 @@ class DirectiveInjector implements DirectiveBinder {
107
107
final Animate _animate;
108
108
final EventHandler _eventHandler;
109
109
Scope scope; //TODO(misko): this should be final after we get rid of controller
110
+ final View _view;
110
111
111
112
NgElement _ngElement;
112
113
ElementProbe _elementProbe;
@@ -141,14 +142,15 @@ class DirectiveInjector implements DirectiveBinder {
141
142
static Binding _tempBinding = new Binding ();
142
143
143
144
DirectiveInjector (this ._parent, appInjector, this ._node, this ._nodeAttrs,
144
- this ._eventHandler, this .scope, this ._animate)
145
+ this ._eventHandler, this .scope, this ._view, this . _animate)
145
146
: _appInjector = appInjector;
146
147
147
148
DirectiveInjector ._default (this ._parent, this ._appInjector)
148
149
: _node = null ,
149
150
_nodeAttrs = null ,
150
151
_eventHandler = null ,
151
152
scope = null ,
153
+ _view = null ,
152
154
_animate = null ;
153
155
154
156
void bind (key, {dynamic toValue: DEFAULT_VALUE ,
@@ -291,6 +293,7 @@ class DirectiveInjector implements DirectiveBinder {
291
293
currentInjector = currentInjector._parent;
292
294
}
293
295
return null ;
296
+ case VIEW_KEY_ID : return _view;
294
297
default : new NoProviderError (_KEYS [keyId]);
295
298
}
296
299
}
@@ -371,8 +374,8 @@ class TemplateDirectiveInjector extends DirectiveInjector {
371
374
372
375
TemplateDirectiveInjector (DirectiveInjector parent, Injector appInjector,
373
376
Node node, NodeAttrs nodeAttrs, EventHandler eventHandler,
374
- Scope scope, Animate animate, this ._viewFactory)
375
- : super (parent, appInjector, node, nodeAttrs, eventHandler, scope, animate);
377
+ Scope scope, View view, Animate animate, this ._viewFactory)
378
+ : super (parent, appInjector, node, nodeAttrs, eventHandler, scope, view, animate);
376
379
377
380
378
381
Object _getById (int keyId) {
@@ -395,9 +398,9 @@ class ComponentDirectiveInjector extends DirectiveInjector {
395
398
final ContentPort _contentPort;
396
399
397
400
ComponentDirectiveInjector (DirectiveInjector parent, Injector appInjector,
398
- EventHandler eventHandler, Scope scope,
401
+ EventHandler eventHandler, Scope scope, View view,
399
402
this ._templateLoader, this ._shadowRoot, this ._contentPort)
400
- : super (parent, appInjector, parent._node, parent._nodeAttrs, eventHandler, scope,
403
+ : super (parent, appInjector, parent._node, parent._nodeAttrs, eventHandler, scope, view,
401
404
parent._animate);
402
405
403
406
Object _getById (int keyId) {
0 commit comments