()
| 4888 | @ViewChild('container', {read: ElementRef}) container!: ElementRef; |
| 4889 | |
| 4890 | openModal() { |
| 4891 | const hostElement = this.container.nativeElement; |
| 4892 | const componentRef = createComponent(Dialog, { |
| 4893 | hostElement, |
| 4894 | elementInjector: this.injector, |
| 4895 | environmentInjector: this.envInjector, |
| 4896 | }); |
| 4897 | this.appRef.attachView(componentRef.hostView); |
| 4898 | componentRef.changeDetectorRef.detectChanges(); |
| 4899 | } |
| 4900 | } |
| 4901 | |
| 4902 | const deferDepsInterceptor = { |
no test coverage detected