Provide Automatic Binding of FormControl Error Messages and Status to input hints
- 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:
This is a feature request.
This is related to #348, but is specifically asking for the material guidance to be a part of the framework, integrating with standard functionality of @angular/forms.
#### What is the expected behavior?
Looking at [Material Error Patterns](https://material.io/guidelines/patterns/errors.html), there seems to be a standard behavior of inlining form error message into the hint area (with a specific color).

It also supports separating the existing hint from the error message via a comma.

#### What is the current behavior?
Error state and messages are not handled.
#### What are the steps to reproduce?
There is nothing to show as this is feature that is yet to be implemented. [Material Error Patterns](https://material.io/guidelines/patterns/errors.html) should provide the expected behavior and visual treatment.
#### What is the use-case or motivation for changing an existing behavior?
The general gist is that if everyone were to follow the guidelines from material.io, you would end up with a fair amount of duplicate code for every input. The pervasiveness of the desired functionality seems like a prime candidate for handling at the framework level.
#### Which versions of Angular, Material, OS, browsers are affected?
All
#### 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 tài liệu tham khảo Material Error Patterns và phần tích hợp @angular/forms của Angular được mô tả trong issue. Vì không có tệp hoặc bài kiểm thử nào được nêu tên, hãy xác định các điểm đầu vào của framework và xác định phạm vi bao phủ cho việc tự động hiển thị lỗi/trạng thái, tách biệt gợi ý và cách xử lý trực quan được yêu cầu; được xem là hoàn thành khi hành vi được cung cấp ở cấp framework thay vì bị nhân bản cho từng trường nhập liệu.
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ó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- 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
- 25/100