I have
const dialogRef = this.dialog.open( ConfirmationDialogComponent, { width: '50vw', data: resume } );
but how can I avoid that mat-dialog destroy the component called "ConfirmationDialogComponent" ? because I have a subscriber of a behavior subject inside of that component and when mat-dialog is closed and re-opened again, the the response of the subscriber is null. Also all the apis that the component have are called again.
2.1m questions
2.1m answers
60 comments
57.0k users