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?
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?
You can make a custom component that is a clone of
MatDialog, but usesMatDialogwith the propertydisableCloseas default.