I'm using Angular Material Dialog and I was wondering if I need destroy it after the component is closed.
Example
openUpdateStatusDialog(alertId: string): void {
this.dialog.open(UpdateStatusDialogComponent, {
data: alertId,
panelClass: 'ion-dialog'
}).afterClosed()
.pipe(
map((result) => {
if (result) {
this.updateNotificationStatus.emit(result);
}
}),
untilDestroyed(this))
.subscribe();
}