From b80825602da7bca92125bdb73f3b9d634ff32c2f Mon Sep 17 00:00:00 2001 From: Heo Date: Sun, 5 Mar 2017 07:53:23 +0900 Subject: [PATCH] docs(dialog): update dialog afterClosed (#3411) --- src/lib/dialog/dialog.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/dialog/dialog.md b/src/lib/dialog/dialog.md index 3b858bf38e3..622f4b72429 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.subscribe(result => { +dialogRef.afterClosed().subscribe(result => { console.log(`Dialog result: ${result}`); // Pizza! }); @@ -76,4 +76,4 @@ that the AOT compiler knows to create the `ComponentFactory` for it. bootstrap: [AppComponent] }) export class AppModule() {} -``` \ No newline at end of file +```