Skip to content

Commit 3420aaf

Browse files
mrm1st3rmmalerba
authored andcommitted
docs(material/dialog): state when notification observables close (#21336)
* docs(material/dialog): state when notification observables close * docs(material/dialog): improve wording (cherry picked from commit 8cd497b)
1 parent 0266db2 commit 3420aaf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/material/dialog/dialog.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ let dialogRef = dialog.open(UserProfileComponent, {
1414
```
1515

1616
The `MatDialogRef` provides a handle on the opened dialog. It can be used to close the dialog and to
17-
receive notification when the dialog has been closed.
17+
receive notifications when the dialog has been closed. Any notification Observables will complete when the dialog closes.
1818

1919
```ts
2020
dialogRef.afterClosed().subscribe(result => {
@@ -26,7 +26,7 @@ dialogRef.close('Pizza!');
2626

2727
Components created via `MatDialog` can _inject_ `MatDialogRef` and use it to close the dialog
2828
in which they are contained. When closing, an optional result value can be provided. This result
29-
value is forwarded as the result of the `afterClosed` promise.
29+
value is forwarded as the result of the `afterClosed` Observable.
3030

3131
```ts
3232
@Component({/* ... */})

0 commit comments

Comments
 (0)