Skip to content

Commit

Permalink
docs(dialog): change then to subscribe (#3186)
Browse files Browse the repository at this point in the history
Change the docs to align with the returned observable
  • Loading branch information
comfroels authored and mmalerba committed Feb 21, 2017
1 parent cc6635a commit 7c1c220
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/dialog/dialog.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The `MdDialogRef` provides a handle on the opened dialog. It can be used to clos
receive notification when the dialog has been closed.

```ts
dialogRef.afterClosed.then(result => {
dialogRef.afterClosed.subscribe(result => {
console.log(`Dialog result: ${result}`); // Pizza!
});

Expand Down

0 comments on commit 7c1c220

Please sign in to comment.