File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,18 @@ export class YourDialog {
39
39
}
40
40
```
41
41
42
+ ### Specifying global configuration defaults
43
+ Default dialog options can be specified by providing an instance of ` MatDialogConfig ` for
44
+ MAT_DIALOG_DEFAULT_OPTIONS in your application's root module.
45
+
46
+ ``` ts
47
+ @NgModule ({
48
+ providers: [
49
+ {provide: MAT_DIALOG_DEFAULT_OPTIONS , useValue: {hasBackdrop: false }}
50
+ ]
51
+ })
52
+ ```
53
+
42
54
### Sharing data with the Dialog component.
43
55
If you want to share data with your dialog, you can use the ` data ` option to pass information to the dialog component.
44
56
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ present in the form field control. It can also be set to `auto` to restore the d
38
38
39
39
<!-- example(form-field-label) -->
40
40
41
- Global default label options can be specified by setting providing a value for
41
+ Global default label options can be specified by providing a value for
42
42
` MAT_LABEL_GLOBAL_OPTIONS ` in your application's root module. Like the property, the global
43
43
setting can be either ` always ` , ` never ` , or ` auto ` .
44
44
You can’t perform that action at this time.
0 commit comments