angular / angular/components

docs-bug(chips): the "form example" is not fully related to forms

Đang mở
#32,537 2 bình luận 1 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

area: material/chips docs P4
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.

  1. The interaction with mat-chip-grid is happening not fully through the formControl. For now the source of chips's list is keywords signal, 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.

  2. These two examples of chips-form-control-example and chips-reactive-form-example components 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

https://material.angular.dev/components/chips/examples

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. 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

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.