mirror of
https://github.com/Redocly/redoc.git
synced 2025-02-07 21:40:32 +03:00
add comments
This commit is contained in:
parent
4b6cc2ea79
commit
fe53a3d7d0
|
@ -27,11 +27,14 @@ export class ContentProjector {
|
||||||
}
|
}
|
||||||
|
|
||||||
let parentCompRef = parentView.createComponent(componentFactory, null, contextInjector, [projectedNodes]);
|
let parentCompRef = parentView.createComponent(componentFactory, null, contextInjector, [projectedNodes]);
|
||||||
|
|
||||||
|
// using private property to get AppElement instance
|
||||||
let appElement = (<any>parentView)._element;
|
let appElement = (<any>parentView)._element;
|
||||||
appElement.nestedViews = appElement.nestedViews || [];
|
appElement.nestedViews = appElement.nestedViews || [];
|
||||||
for (let i=0; i < componentRefs.length; i++) {
|
for (let i=0; i < componentRefs.length; i++) {
|
||||||
let compRef = componentRefs[i];
|
let compRef = componentRefs[i];
|
||||||
appElement.nestedViews.push((<any>compRef.hostView).internalView);
|
appElement.nestedViews.push((<any>compRef.hostView).internalView);
|
||||||
|
// attach appElement to parentView change detector
|
||||||
(<any>compRef.hostView).internalView.addToContentChildren(appElement);
|
(<any>compRef.hostView).internalView.addToContentChildren(appElement);
|
||||||
}
|
}
|
||||||
return parentCompRef;
|
return parentCompRef;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user