mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs(radio): Correct providers syntax in default color configuration example (#16245)
This commit is contained in:
@@ -39,8 +39,8 @@ Radio button groups should be given a meaningful label via `aria-label` or `aria
|
||||
The default color for radio buttons can be configured globally using the `MAT_RADIO_DEFAULT_OPTIONS` provider
|
||||
|
||||
```
|
||||
providers: [
|
||||
providers: [{
|
||||
provide: MAT_RADIO_DEFAULT_OPTIONS,
|
||||
useValue: { color: 'accent' },
|
||||
]
|
||||
}]
|
||||
```
|
||||
Reference in New Issue
Block a user