diff options
Diffstat (limited to 'src/angular/utils/create-dynamic-component.service.ts')
-rw-r--r-- | src/angular/utils/create-dynamic-component.service.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/angular/utils/create-dynamic-component.service.ts b/src/angular/utils/create-dynamic-component.service.ts index 428dd73..506f787 100644 --- a/src/angular/utils/create-dynamic-component.service.ts +++ b/src/angular/utils/create-dynamic-component.service.ts @@ -17,8 +17,7 @@ export class CreateDynamicComponentService { * @memberOf InjectionService */ private getRootViewContainer(): ComponentRef<any> { - const rootComponents = this.applicationRef['_rootComponents']; // Angular2 - // const rootComponents = this.applicationRef['components']; // Angular5 + const rootComponents = this.applicationRef['components']; if (rootComponents.length) { return rootComponents[0]; } |