I'm using showCustomDialog mostly through-out my application. I've hit some use-cases where the dialog just needs to pass some data when closed. Passing a provider for this sometimes ... well .. seems over-work. I think it would be ideal to be able to pass some data to the MdlDialogReference's hide method which MdlDialogReference's onHide could optionally receive.
this.dialogService.showCustomDialog({ ... })
.subscribe(dialogRef => {
dialogRef.onHide().subscribe(data => {
// do whatever with the data!
});
});
I'll be very much happy to issue a pull-request if you think that's a valid use-case. Please let me know your thoughts.
I'm using
showCustomDialogmostly through-out my application. I've hit some use-cases where the dialog just needs to pass some data when closed. Passing a provider for this sometimes ... well .. seems over-work. I think it would be ideal to be able to pass some data to the MdlDialogReference'shidemethod which MdlDialogReference'sonHidecould optionally receive.I'll be very much happy to issue a pull-request if you think that's a valid use-case. Please let me know your thoughts.