Radio Button not support formControlName in reactive form
- Ngôn ngữ chính
- TypeScript
- Star
- 25k
- Fork
- 6.8k
- Merge trung bình
- 1 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 91
Mô tả
#### 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?
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu với bản tái hiện StackBlitz được liên kết và theo dõi cách mat-radio-button của Angular Material tham gia vào các biểu mẫu reactive. Công việc hoàn tất khi một mat-radio-button có thể sử dụng formControlName mà không cần mat-radio-group cha và lỗi value-accessor được báo cáo không còn xảy ra.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- angular, typescript
- Lĩnh vực
- frontend
- Loại issue
- Tính năng
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100