Radio Button not support formControlName in reactive form
- Vorherrschende Sprache
- TypeScript
- Sterne
- 25k
- Forks
- 6.8k
- Ø Merge
- 1 T. 8 Std.
- Gemergte PRs (30 T.)
- 91
Beschreibung
#### Bug, feature request, or proposal:
proposal
#### What is the expected behavior?
mat-radio-button should support formControlName
#### What is the current behavior?
get Error:
ERROR Error: No value accessor for form control with name: 'gender'
#### What are the steps to reproduce?
https://stackblitz.com/edit/angular-slemqj-ojrv1g
#### What is the use-case or motivation for changing an existing behavior?
mat-radio-button should support formControlName withiout parrent mat-radio-group, like native html input with type radio. There is a lot use cases when you cant use mat-radio-group due to DOM restrictions
#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular: 5.0.0
Material: 5.0.3
OS: Windows
TypeScript: 2.7.0
#### Is there anything else we should know?
Beitragsleitfaden
Rechercherichtung
Beginne mit der verlinkten StackBlitz-Reproduktion und verfolge, wie Angular Material's mat-radio-button an reaktiven Formularen teilnimmt. Die Arbeit ist abgeschlossen, wenn ein mat-radio-button formControlName ohne eine übergeordnete mat-radio-group verwenden kann und der gemeldete Value-Accessor-Fehler nicht mehr auftritt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- angular, typescript
- Bereich
- frontend
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100