[Docs] More details on custom form field controls guide
- 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:
I'd like to request a review of the 'Creating a custom form field control' guide as it does not cover enough in regards to each of it properties and opts to just mentioning them.
#### What is the expected behaviour?
Common examples that are detailed on other approaches and usages.
#### What is the current behaviour?
Common examples that are not all detailed on other approaches or usages.
#### What is the use-case or motivation for changing an existing behaviour?
My biggest gripe that pushed me to make this ticket is that of the error state.
> Since we're not using an NgControl in this example, we don't need to do anything other than just set it to false.
Where as it should be like 'ngControl' which has sufficient methods of implementation
> It is likely you will want to implement ControlValueAccessor ...
#### Is there anything else we should know?
Others have had the same issue
https://stackoverflow.com/questions/52017000/angular-material-custom-reactive-form-control-with-error-state/52017769
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu bằng cách đọc hướng dẫn “Creating a custom form field control” và so sánh phần mô tả các thuộc tính của hướng dẫn với những ví dụ được yêu cầu cũng như phần thảo luận về trạng thái lỗi. Công việc được xem là hoàn tất khi hướng dẫn giải thích các cách sử dụng thuộc tính phổ biến, trình bày các phương pháp tiếp cận phù hợp và làm rõ việc xử lý trạng thái lỗi cũng như ngữ cảnh của ControlValueAccessor.
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
- documentation
- Loại issue
- Tài liệu
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 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