angular stop dialog stacking

The solution for “angular stop dialog stacking” can be found here. The following code will assist you in solving the problem.

constructor(
private dialog: MatDialog,
) { }

const errMsg = this.dialog.open(ErrorMessageDialog);

errMsg.afterClosed().subscribe(result => {
this.dialog.closeAll();
});

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

0
inline scripts encapsulated in