Allow disable in SignalFormControl
- Ngôn ngữ chính
- TypeScript
- Star
- 101k
- Fork
- 27.5k
- Merge trung bình
- 1 ngày 19 giờ
- Pull request đã merge (30 ngày)
- 288
Mô tả
### Which @angular/* package(s) are relevant/related to the feature request?
forms
### Description
I have two issues preventing me from using SignalFormControl in my application.
It's value is untyped in the parents value & controls. That's pretty disappointing when all our forms are typed.
But the even bigger issue is throwing an exception when trying to disable a FormGroup that contains a SignalFormControl. With this restriction we can't disable the form when the user lacks permissions, or while loading data, etc.
### Proposed solution
Allow enabling/disabling the SignalFormControl (at least from the parent form group).
And if possible extend ```AbstractConrol```. Although I assume there's probably a reason you didn't?
### Alternatives considered
Refactoring the whole form to signal forms. I don't think SignalFormConrol is useful as a bridge with these restrictions.
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu bằng cách theo dõi quá trình tích hợp của SignalFormControl với FormGroup và AbstractControl trong package forms. Xác nhận cách trạng thái bật/tắt của nhóm cha và kiểu của giá trị hiện đang được truyền vào SignalFormControl. Công việc được hoàn tất khi một FormGroup cha có thể tắt và bật lại nó mà không phát sinh exception, đồng thời giữ nguyên các giá trị đã được định kiểu khi phù hợp.
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
- Ít trao đổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 48/100