mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-11 03:16:48 +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]);
|
||||
|
||||
// using private property to get AppElement instance
|
||||
let appElement = (<any>parentView)._element;
|
||||
appElement.nestedViews = appElement.nestedViews || [];
|
||||
for (let i=0; i < componentRefs.length; i++) {
|
||||
let compRef = componentRefs[i];
|
||||
appElement.nestedViews.push((<any>compRef.hostView).internalView);
|
||||
// attach appElement to parentView change detector
|
||||
(<any>compRef.hostView).internalView.addToContentChildren(appElement);
|
||||
}
|
||||
return parentCompRef;
|
||||
|
|
Loading…
Reference in New Issue
Block a user