angular / angular/components

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

Open
#24,248 8 comments 0 reactions 0 assignees View on GitHub
area: cdk/layout docs P3
Dominant language
TypeScript
Stars
25k
Forks
6.8k
Avg merge
1d 8h
Merged PRs (30d)
91

Description

### 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

Contributor guide

Open the contributing guide

Research direction

Start at the affected CDK Layout API documentation page and verify the guidance around LayoutModule, BreakpointObserver, and MediaMatcher against the source code shown in the report. Done when the page accurately states whether LayoutModule is required and the examples or import instructions match that behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.