in Angular by
Q:
Angular dialogue list service

1 Answer

0 votes
by

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.

Click here to read more about Angular JS
Click here to read more about Insurance

Related questions

0 votes
asked Feb 5 in Angular by SakshiSharma
0 votes
0 votes
asked Sep 18, 2019 in Angular by john ganales
0 votes
asked Sep 18, 2019 in Angular by john ganales
0 votes
asked Sep 18, 2019 in Angular by john ganales
0 votes
asked Sep 18, 2019 in Angular by john ganales
0 votes
0 votes
0 votes
asked Sep 18, 2019 in Angular by john ganales
0 votes
asked Feb 15, 2020 in Angular by matthenary
+1 vote
asked Jan 15, 2020 in Angular by rahuljain1
...