angular / angular/components

docs-bug(cdk/layout): LayoutModule is not needed

Đang mở
#24,248 8 bình luận 0 reaction 0 người được giao Xem trên GitHub
area: cdk/layout docs P3
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

In the docs it's mentioned that we need to import LayoutModule in order to use BreakpointObserver and MediaMatcher.
In the meantime from the source code it looks like the module is not needed for any purposes.
![image](https://user-images.githubusercontent.com/22374911/150513070-a7c88a8e-e97d-481d-a4c6-e7d16492b7f2.png)
![image](https://user-images.githubusercontent.com/22374911/150513187-e52ca46b-96f5-4061-932a-ef8a100c3013.png)
![image](https://user-images.githubusercontent.com/22374911/150513301-e8f7fc77-ca5a-4230-b568-cdb0fba94c3d.png)

### Affected documentation page

https://material.angular.io/cdk/layout/api

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

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

Hướng nghiên cứu

Bắt đầu từ trang tài liệu API CDK Layout bị ảnh hưởng và đối chiếu hướng dẫn về LayoutModule, BreakpointObserver và MediaMatcher với mã nguồn được nêu trong báo cáo. Hoàn tất khi trang nêu chính xác liệu LayoutModule có bắt buộc hay không, đồng thời các ví dụ hoặc hướng dẫn import phù hợp với hành vi đó.

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ó
2/5
Thời gian dự kiến
1-3 giờ
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
50/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.