Skip to content

Commit 7c1c220

Browse files
comfroelsmmalerba
authored andcommitted
docs(dialog): change then to subscribe (#3186)
Change the docs to align with the returned observable
1 parent cc6635a commit 7c1c220

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/dialog/dialog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The `MdDialogRef` provides a handle on the opened dialog. It can be used to clos
1717
receive notification when the dialog has been closed.
1818

1919
```ts
20-
dialogRef.afterClosed.then(result => {
20+
dialogRef.afterClosed.subscribe(result => {
2121
console.log(`Dialog result: ${result}`); // Pizza!
2222
});
2323

0 commit comments

Comments
 (0)