fix(ivy): host attributes and @COmponentChild should be supported on the same component (#29565)
PR Close #29565
This commit is contained in:
@ -203,6 +203,12 @@ export function createRootComponent<T>(
|
||||
|
||||
hostFeatures && hostFeatures.forEach((feature) => feature(component, componentDef));
|
||||
|
||||
// We want to generate an empty QueryList for root content queries for backwards
|
||||
// compatibility with ViewEngine.
|
||||
if (componentDef.contentQueries) {
|
||||
componentDef.contentQueries(RenderFlags.Create, component, rootView.length - 1);
|
||||
}
|
||||
|
||||
const rootTNode = getPreviousOrParentTNode();
|
||||
if (tView.firstTemplatePass && componentDef.hostBindings) {
|
||||
const expando = tView.expandoInstructions !;
|
||||
@ -217,12 +223,6 @@ export function createRootComponent<T>(
|
||||
renderInitialStyles(native, rootTNode.stylingTemplate, componentView[RENDERER]);
|
||||
}
|
||||
|
||||
// We want to generate an empty QueryList for root content queries for backwards
|
||||
// compatibility with ViewEngine.
|
||||
if (componentDef.contentQueries) {
|
||||
componentDef.contentQueries(RenderFlags.Create, component, rootView.length - 1);
|
||||
}
|
||||
|
||||
return component;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user