diff --git a/src/lib/dialog/dialog.md b/src/lib/dialog/dialog.md index 5bbcabdc6ef6..5d197236c585 100644 --- a/src/lib/dialog/dialog.md +++ b/src/lib/dialog/dialog.md @@ -39,6 +39,18 @@ export class YourDialog { } ``` +### Specifying global configuration defaults +Default dialog options can be specified by providing an instance of `MatDialogConfig` for +MAT_DIALOG_DEFAULT_OPTIONS in your application's root module. + +```ts +@NgModule({ + providers: [ + {provide: MAT_DIALOG_DEFAULT_OPTIONS, useValue: {hasBackdrop: false}} + ] +}) +``` + ### Sharing data with the Dialog component. If you want to share data with your dialog, you can use the `data` option to pass information to the dialog component. diff --git a/src/lib/form-field/form-field.md b/src/lib/form-field/form-field.md index c28164137e08..dc602c759c69 100644 --- a/src/lib/form-field/form-field.md +++ b/src/lib/form-field/form-field.md @@ -38,7 +38,7 @@ present in the form field control. It can also be set to `auto` to restore the d -Global default label options can be specified by setting providing a value for +Global default label options can be specified by providing a value for `MAT_LABEL_GLOBAL_OPTIONS` in your application's root module. Like the property, the global setting can be either `always`, `never`, or `auto`.