Commit f4cd6775 authored by Валерий Килин's avatar Валерий Килин 💢

Fork commit

parent 196362eb
......@@ -84,7 +84,7 @@ export class DialogService {
let componentRef = componentFactory.create(this.injector);
let componentRootNode = (componentRef.hostView as EmbeddedViewRef<any>).rootNodes[0] as HTMLElement;
if(!this.container) {
let componentRootViewContainer = this.applicationRef['_rootComponents'][0];
let componentRootViewContainer = this.applicationRef.components[0];
this.container = (componentRootViewContainer.hostView as EmbeddedViewRef<any>).rootNodes[0] as HTMLElement;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment