fix(ivy): support queries for views inserted in lifecycle hooks (#24587)
Closes #23707 PR Close #24587
This commit is contained in:

committed by
Miško Hevery

parent
1e6a226703
commit
3e1a3b2e32
@ -96,7 +96,7 @@ export class ComponentFactory<T> extends viewEngine_ComponentFactory<T> {
|
||||
// Create the root view. Uses empty TView and ContentTemplate.
|
||||
const rootView: LViewData = createLViewData(
|
||||
rendererFactory.createRenderer(hostNode, this.componentDef.rendererType),
|
||||
createTView(-1, null, null, null), null,
|
||||
createTView(-1, null, null, null, null), null,
|
||||
this.componentDef.onPush ? LViewFlags.Dirty : LViewFlags.CheckAlways);
|
||||
rootView[INJECTOR] = ngModule && ngModule.injector || null;
|
||||
|
||||
|
Reference in New Issue
Block a user