@@ -25,10 +25,10 @@ class TemplateElementBinder extends ElementBinder {
25
25
_registerViewFactory (node, parentInjector, nodeModule) {
26
26
assert (templateViewFactory != null );
27
27
nodeModule
28
- ..bindByKey (VIEW_PORT_KEY , toFactory: (_ ) =>
28
+ ..bindByKey (VIEW_PORT_KEY , inject : const [], toFactory: () =>
29
29
new ViewPort (node, parentInjector.getByKey (ANIMATE_KEY )))
30
30
..bindByKey (VIEW_FACTORY_KEY , toValue: templateViewFactory)
31
- ..bindByKey (BOUND_VIEW_FACTORY_KEY , toFactory: (Injector injector) =>
31
+ ..bindByKey (BOUND_VIEW_FACTORY_KEY , inject : const [ Injector ], toFactory: (Injector injector) =>
32
32
templateViewFactory.bind (injector));
33
33
}
34
34
}
@@ -250,8 +250,8 @@ class ElementBinder {
250
250
void _createDirectiveFactories (DirectiveRef ref, nodeModule, node, nodesAttrsDirectives, nodeAttrs,
251
251
visibility) {
252
252
if (ref.type == TextMustache ) {
253
- nodeModule.bind (TextMustache , toFactory : ( Injector injector) => new TextMustache (
254
- node, ref.valueAST, injector. getByKey ( SCOPE_KEY ) ));
253
+ nodeModule.bind (TextMustache , inject : const [ Scope ],
254
+ toFactory : ( Scope scope) => new TextMustache ( node, ref.valueAST, scope ));
255
255
} else if (ref.type == AttrMustache ) {
256
256
if (nodesAttrsDirectives.isEmpty) {
257
257
nodeModule.bind (AttrMustache , toFactory: (Injector injector) {
@@ -265,7 +265,8 @@ class ElementBinder {
265
265
} else if (ref.annotation is Component ) {
266
266
assert (ref == componentData.ref);
267
267
268
- nodeModule.bindByKey (ref.typeKey, toFactory: componentData.factory .call (node), visibility: visibility);
268
+ nodeModule.bindByKey (ref.typeKey, inject: const [Injector ],
269
+ toFactory: componentData.factory .call (node), visibility: visibility);
269
270
} else {
270
271
nodeModule.bindByKey (ref.typeKey, visibility: visibility);
271
272
}
@@ -297,7 +298,7 @@ class ElementBinder {
297
298
..bindByKey (NODE_ATTRS_KEY , toValue: nodeAttrs);
298
299
299
300
if (_config.elementProbeEnabled) {
300
- nodeModule.bindByKey (ELEMENT_PROBE_KEY , toFactory: (_ ) => probe);
301
+ nodeModule.bindByKey (ELEMENT_PROBE_KEY , inject : const [], toFactory: () => probe);
301
302
}
302
303
303
304
directiveRefs.forEach ((DirectiveRef ref) {
0 commit comments