From 03e96e4e4be3f2962c546d519fbc8291b9c8bb0a Mon Sep 17 00:00:00 2001 From: Heo Date: Fri, 3 Mar 2017 21:44:45 +0900 Subject: [PATCH] docs(dialog): Update dialog.md - afterClosed afterClosed is callable function. afterClosed(): Observable; --- 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 3b858bf38e39..622f4b724294 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 +```