MCPcopy
hub / github.com/angular/angular / openModal

Method openModal

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

Source from the content-addressed store, hash-verified

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

Callers 1

defer_spec.tsFile · 0.80

Calls 3

createComponentFunction · 0.90
attachViewMethod · 0.80
detectChangesMethod · 0.45

Tested by

no test coverage detected