We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc6635a commit 7c1c220Copy full SHA for 7c1c220
src/lib/dialog/dialog.md
@@ -17,7 +17,7 @@ The `MdDialogRef` provides a handle on the opened dialog. It can be used to clos
17
receive notification when the dialog has been closed.
18
19
```ts
20
-dialogRef.afterClosed.then(result => {
+dialogRef.afterClosed.subscribe(result => {
21
console.log(`Dialog result: ${result}`); // Pizza!
22
});
23
0 commit comments