MCPcopy Create free account
hub / github.com/angular/angular / openModal

Method openModal

packages/core/test/acceptance/defer_spec.ts:4890–4899  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 = {

Callers 1

defer_spec.tsFile · 0.80

Calls 3

createComponentFunction · 0.90
attachViewMethod · 0.80
detectChangesMethod · 0.45

Tested by

no test coverage detected