docs-bug(chips): the "form example" is not fully related to forms
Chưa có ai nhận issue này.
- 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ả
Documentation Feedback
We have chips-form-control-example, chips-reactive-form-example components that intend to illustrate how chips interact with the form control.
I see 2 problems here.
-
The interaction with
mat-chip-gridis happening not fully through the formControl. For now the source of chips's list iskeywordssignal, not the formControl:@for (keyword of keywords(); track keyword) {
It seems we should take the formControl as the source of chips's list (not the signal):@for (keyword of formControl.value || []; track keyword) {
Moreover we could get rid of the signal, because the goal of the example is to show the interaction between the formControl and the chips in the template. -
These two examples of
chips-form-control-exampleandchips-reactive-form-examplecomponents duplicate each other. They have the same logic inside of components classes. So it seems we could leave only one of these two examples.
Affected documentation page
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu với các component chips-form-control-example và chips-reactive-form-example được tham chiếu trong issue, đồng thời kiểm tra các ví dụ được hiển thị trên trang tài liệu về chips. So sánh các class và template của chúng; hoàn thành có nghĩa là danh sách chips được minh họa thông qua formControl thay vì keywords signal và ví dụ trùng lặp được xóa hoặc hợp nhất.
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, frontend
- 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
- 42/100