I have an mat dialog component in my project as I press Confirm button I call
onCloseConfirm(data) {
this.thisDialogRef.close('Confirm');
console.log("conf data", data);
}
in my parent I subscribe to passed data (in my Case 'Confirm');
dialogRef.afterClosed().subscribe(result => {
console.log(`Dialog closed: ${result}`);
});
What I would like to do is to pass data
also. So I would like to pass the 'Confrim'
message + data
both. Is it possible?