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

Method getDialogById

src/cdk/dialog/dialog.ts:176–178  ·  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

174 * @param id ID to use when looking up the dialog.
175 */
176 getDialogById<R, C>(id: string): DialogRef<R, C> | undefined {
177 return this.openDialogs.find(dialog => dialog.id === id);
178 }
179
180 ngOnDestroy() {
181 // Make one pass over all the dialogs that need to be untracked, but should not be closed. We

Callers 2

openMethod · 0.95
dialog.spec.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected