refactor(ivy): don't pass LView where only TView is needed (#31490)

PR Close #31490
This commit is contained in:
Pawel Kozlowski
2019-07-10 17:53:42 +02:00
committed by Matias Niemelä
parent 6f50aad5c4
commit 7014b67e51
4 changed files with 7 additions and 7 deletions

View File

@ -185,7 +185,7 @@ export function createRootComponentView(
rootView[HEADER_OFFSET], tNode, rendererFactory, renderer, sanitizer);
if (tView.firstTemplatePass) {
diPublicInInjector(getOrCreateNodeInjectorForNode(tNode, rootView), rootView, def.type);
diPublicInInjector(getOrCreateNodeInjectorForNode(tNode, rootView), tView, def.type);
tNode.flags = TNodeFlags.isComponent;
initNodeFlags(tNode, rootView.length, 1);
queueComponentIndexForCheck(tNode);