CdkDialog provides behavior for modal dialogs without visual styling.
Installation
Basic Usage
Opening a Dialog
Passing Data
Configuration
API Reference
Dialog Service
| Method | Returns | Description |
|---|---|---|
open(component, config?) | DialogRef | Open a dialog |
DialogRef
| Property | Type | Description |
|---|---|---|
id | string | Unique dialog ID |
closed | Observable | Emits when dialog closes |
| Method | Returns | Description |
|---|---|---|
close(result?) | void | Close the dialog |
backdropClick() | Observable | Backdrop click events |
keydownEvents() | Observable | Keyboard events |