()
| 4951 | @ViewChild('container', {read: ElementRef}) container!: ElementRef; |
| 4952 | |
| 4953 | openModal() { |
| 4954 | const hostElement = this.container.nativeElement; |
| 4955 | const componentRef = createComponent(Dialog, { |
| 4956 | hostElement, |
| 4957 | elementInjector: this.injector, |
| 4958 | environmentInjector: this.envInjector, |
| 4959 | }); |
| 4960 | this.appRef.attachView(componentRef.hostView); |
| 4961 | componentRef.changeDetectorRef.detectChanges(); |
| 4962 | } |
| 4963 | } |
| 4964 | |
| 4965 | const deferDepsInterceptor = { |
no test coverage detected