File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -72,14 +72,14 @@ present in the form field control. It can also be set to `auto` to restore the d
72
72
73
73
<!-- example(form-field-label) -->
74
74
75
- Global default label options can be specified by providing a value for
76
- ` MAT_LABEL_GLOBAL_OPTIONS ` in your application's root module. Like the property, the global
77
- setting can be either ` always ` , ` never ` , or ` auto ` .
75
+ The floating label behavior can be adjusted globally by providing a value for
76
+ ` MAT_FORM_FIELD_DEFAULT_OPTIONS ` in your application's root module. Like the ` floatLabel ` input,
77
+ the option can be either set to ` always ` , ` never ` , or ` auto ` .
78
78
79
79
``` ts
80
80
@NgModule ({
81
81
providers: [
82
- {provide: MAT_LABEL_GLOBAL_OPTIONS , useValue: {float : ' always' }}
82
+ {provide: MAT_FORM_FIELD_DEFAULT_OPTIONS , useValue: {floatLabel : ' always' }}
83
83
]
84
84
})
85
85
```
You can’t perform that action at this time.
0 commit comments