From b2a3acea0d0f66028c9ce5fad02d4ecc64abf70c Mon Sep 17 00:00:00 2001 From: Israel Lavi Date: Tue, 7 Aug 2018 10:54:17 +0300 Subject: Initial commit. Adding files needed for Linux Foundation. Change-Id: I9f2b4851a5ae01f83800c7f8bab8608a2221c730 Issue-ID: SDC-1608 Signed-off-by: Israel Lavi --- src/angular/utils/create-dynamic-component.service.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/angular/utils/create-dynamic-component.service.ts') 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 { - const rootComponents = this.applicationRef['_rootComponents']; // Angular2 - // const rootComponents = this.applicationRef['components']; // Angular5 + const rootComponents = this.applicationRef['components']; if (rootComponents.length) { return rootComponents[0]; } -- cgit