Add a universal property to the MatDialog

43 views Asked by At

I want to add the property disableClose with the value true to all MatDialogs in my Angular app.

I've searched already and tried to set the property disableClose in the app.module.ts file. But that didn't work.

Anyone have an idea?

1

There are 1 answers

2
André On BEST ANSWER

You can make a custom component that is a clone of MatDialog, but uses MatDialog with the property disableClose as default.