Skip to content

Commit b808256

Browse files
Heokara
Heo
authored andcommitted
docs(dialog): update dialog afterClosed (#3411)
1 parent 94adecd commit b808256

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/dialog/dialog.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The `MdDialogRef` provides a handle on the opened dialog. It can be used to clos
1717
receive notification when the dialog has been closed.
1818

1919
```ts
20-
dialogRef.afterClosed.subscribe(result => {
20+
dialogRef.afterClosed().subscribe(result => {
2121
console.log(`Dialog result: ${result}`); // Pizza!
2222
});
2323

@@ -76,4 +76,4 @@ that the AOT compiler knows to create the `ComponentFactory` for it.
7676
bootstrap: [AppComponent]
7777
})
7878
export class AppModule() {}
79-
```
79+
```

0 commit comments

Comments
 (0)