()
| 4935 | @ViewChild('container', {read: ElementRef}) container!: ElementRef; |
| 4936 | |
| 4937 | openModal() { |
| 4938 | const hostElement = this.container.nativeElement; |
| 4939 | const componentRef = createComponent(Dialog, { |
| 4940 | hostElement, |
| 4941 | elementInjector: this.injector, |
| 4942 | environmentInjector: this.envInjector, |
| 4943 | }); |
| 4944 | this.appRef.attachView(componentRef.hostView); |
| 4945 | componentRef.changeDetectorRef.detectChanges(); |
| 4946 | } |
| 4947 | } |
| 4948 | |
| 4949 | const deferDepsInterceptor = { |
no test coverage detected