in Angular by (13.9k points)
Angular dialogue list service

1 Answer

0 votes
by (14.5k points)

API reference for Angular Material dialog

import {MatDialogModule} from '@angular/material/dialog';

 Services

 MatDialog

Service to open Material Design modal dialogs.

Properties

Name Description

afterAllClosed: Observable<void>

Stream that emits when all open dialog have finished closing. Will emit on subscribe if there are no open dialogs to begin with.

afterOpened: Subject<MatDialogRef<any>>

Stream that emits when a dialog has been opened.

openDialogs: MatDialogRef<any>[]

Keeps track of the currently-open dialogs.

Deprecated

afterOpen: Subject<MatDialogRef<any>>

Stream that emits when a dialog has been opened.

Methods

closeAll

Closes all of the currently-open dialogs.

getDialogById

Finds an open dialog by its id.

Parameters

id

string

ID to use when looking up the dialog.

Returns

MatDialogRef<any> | undefined

open

Opens a modal dialog containing the given component.

Parameters

componentOrTemplateRef

ComponentType<T> | TemplateRef<T>

Type of the component to load into the dialog, or a TemplateRef to instantiate as the dialog content.

config?

MatDialogConfig<D>

Extra configuration options.

Returns

MatDialogRef<T, R>

Reference to the newly-opened dialog.

Related questions

0 votes
asked Aug 11 in Angular by DavidAnderson (9.0k points)
0 votes
asked Aug 11 in Angular by DavidAnderson (9.0k points)
0 votes
...