mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-22 16:46:34 +03:00
fix: update content-projector to latest ng4
This commit is contained in:
parent
2c8b2ce326
commit
d52c7ef8a0
|
@ -31,11 +31,11 @@ export class ContentProjector {
|
|||
// using private property to get view instance
|
||||
let viewContainer = (<any>parentView)._view;
|
||||
let viewData = (<any>parentView)._data;
|
||||
viewData.embeddedViews = viewData.embeddedViews || [];
|
||||
viewData.viewContainer._embeddedViews = viewData.viewContainer.embeddedViews || [];
|
||||
for (let i=0; i < componentRefs.length; i++) {
|
||||
let compRef = componentRefs[i];
|
||||
// attach view to containter change detector
|
||||
viewData.embeddedViews.push((<any>compRef.hostView)._view);
|
||||
viewData.viewContainer._embeddedViews.push((<any>compRef.hostView)._view);
|
||||
(<any>compRef.hostView).attachToViewContainerRef(viewContainer);
|
||||
}
|
||||
return parentCompRef;
|
||||
|
|
Loading…
Reference in New Issue
Block a user