Returning Data from MdDialog in Angular Material 2
First, you need to add MdDialogRef to your dialog component export class AddBookComponent { constructor(private dialogRef: MdDialogRef<AddBookComponent>) { } } Then use dialogRef.close to return the data save() { this.dialogRef.close({ data: ‘data’ }); }