mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs(dialog): update dialog afterClosed (#3411)
This commit is contained in:
@@ -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() {}
|
||||
```
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user