Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Commit 6f3587d

Browse files
committed
fix(transcluding component): Perfer getByKey over get
This code was originally authored by @mhevery in the DirectiveInjector change.
1 parent a33891e commit 6f3587d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/core_dom/transcluding_component_factory.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class BoundTranscludingComponentFactory implements BoundComponentFactory {
158158
childInjectorCompleter.complete(childInjector);
159159
}
160160

161-
var controller = childInjector.get(_ref.type);
161+
var controller = childInjector.getByKey(_ref.typeKey);
162162
shadowScope.context[component.publishAs] = controller;
163163
BoundComponentFactory._setupOnShadowDomAttach(controller, templateLoader, shadowScope);
164164
return controller;

0 commit comments

Comments
 (0)