MCPcopy Create free account
hub / github.com/angular/components / getDialogById

Method getDialogById

src/material/dialog/dialog.ts:220–222  ·  view source on GitHub ↗

* Finds an open dialog by its id. * @param id ID to use when looking up the dialog.

(id: string)

Source from the content-addressed store, hash-verified

218 * @param id ID to use when looking up the dialog.
219 */
220 getDialogById(id: string): MatDialogRef<any> | undefined {
221 return this.openDialogs.find(dialog => dialog.id === id);
222 }
223
224 ngOnDestroy() {
225 // Only close the dialogs at this level on destroy

Callers 1

dialog.spec.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected