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

Method openModal

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

Source from the content-addressed store, hash-verified

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

Callers 1

defer_spec.tsFile · 0.80

Calls 3

createComponentFunction · 0.90
attachViewMethod · 0.80
detectChangesMethod · 0.45

Tested by

no test coverage detected