()
| 4944 | @ViewChild('container', {read: ElementRef}) container!: ElementRef; |
| 4945 | |
| 4946 | openModal() { |
| 4947 | const hostElement = this.container.nativeElement; |
| 4948 | const componentRef = createComponent(Dialog, { |
| 4949 | hostElement, |
| 4950 | elementInjector: this.injector, |
| 4951 | environmentInjector: this.envInjector, |
| 4952 | }); |
| 4953 | this.appRef.attachView(componentRef.hostView); |
| 4954 | componentRef.changeDetectorRef.detectChanges(); |
| 4955 | } |
| 4956 | } |
| 4957 | |
| 4958 | const deferDepsInterceptor = { |
no test coverage detected