From b121095e63ce2acde1d3391eb57d083a855c2876 Mon Sep 17 00:00:00 2001 From: Nathan White Date: Sat, 18 Feb 2017 20:01:11 -0700 Subject: [PATCH] docs(dialog): change then to subscribe Change the docs to align with the returned observable --- src/lib/dialog/dialog.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/dialog/dialog.md b/src/lib/dialog/dialog.md index ca24c862cda5..4bf40be69e99 100644 --- a/src/lib/dialog/dialog.md +++ b/src/lib/dialog/dialog.md @@ -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! });