diff --git a/packages/core/src/render3/instructions/element.ts b/packages/core/src/render3/instructions/element.ts index 219831e4df..ff45081263 100644 --- a/packages/core/src/render3/instructions/element.ts +++ b/packages/core/src/render3/instructions/element.ts @@ -156,7 +156,7 @@ export function ɵɵelementEnd(): void { lView[QUERIES] = currentQueries.parent; } - registerPostOrderHooks(getLView()[TVIEW], previousOrParentTNode); + registerPostOrderHooks(lView[TVIEW], previousOrParentTNode); decreaseElementDepthCount(); // this is fired at the end of elementEnd because ALL of the stylingBindings code