fix(ivy): allow root components to inject ViewContainerRef (#26682)
PR Close #26682
This commit is contained in:

committed by
Matias Niemelä

parent
578e4c7642
commit
ede65dbede
@ -134,6 +134,10 @@ export function isLContainer(value: RElement | RComment | LContainer | StylingCo
|
||||
return Array.isArray(value) && typeof value[ACTIVE_INDEX] === 'number';
|
||||
}
|
||||
|
||||
export function isRootView(target: LViewData): boolean {
|
||||
return (target[FLAGS] & LViewFlags.IsRoot) !== 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve the root view from any component by walking the parent `LViewData` until
|
||||
* reaching the root `LViewData`.
|
||||
|
Reference in New Issue
Block a user