angular / angular/components

docs-bug(Sidenav): deprecated methods used in the responsive sidenav example

Open
#29,266 2 comments 0 reactions 0 assignees View on GitHub
area: material/sidenav docs good first issue P4
Dominant language
TypeScript
Stars
25k
Forks
6.8k
Avg merge
1d 8h
Merged PRs (30d)
91

Description

### Documentation Feedback

https://github.com/angular/components/blob/main/src/components-examples/material/sidenav/sidenav-responsive/sidenav-responsive-example.ts

In the stackblitz demo, it shows that addlistener and removelistener are deprecated.
I just wanted to create this documentation issue to let the contributors/maintainers aware.

### Affected documentation page

https://material.angular.io/components/sidenav/examples#sidenav-responsive

Contributor guide

Open the contributing guide

Research direction

Start by inspecting src/components-examples/material/sidenav/sidenav-responsive/sidenav-responsive-example.ts and opening the affected Sidenav example in StackBlitz. Confirm the deprecated addListener and removeListener usage, then verify that the responsive example and its documentation page no longer produce those deprecation warnings.

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
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.