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

Method openModal

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

Source from the content-addressed store, hash-verified

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

Callers 1

defer_spec.tsFile · 0.80

Calls 3

createComponentFunction · 0.90
attachViewMethod · 0.80
detectChangesMethod · 0.45

Tested by

no test coverage detected