Categories

Sep 18, 2019 in Angular

Q: Angular dialogue list service

1 Answer

Sep 19, 2019

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

Madanswer
Sep 18, 2019 in Angular
Sep 18, 2019 in Angular
Sep 18, 2019 in Angular
Sep 18, 2019 in Angular
Jan 15 in Angular
...