docs(dialog): update dialog afterClosed (#3411)

This commit is contained in:
Heo
2017-03-05 07:53:23 +09:00
committed by Kara
parent 94adecdb5e
commit b80825602d
+2 -2
View File
@@ -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() {}
```
```