Skip to content

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

Open

Description

@ysk3a

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

Activity

  1. added
    docs
    needs triage
    on Jun 15, 2024
  2. crisbeto commented on Jun 17, 2024

    @crisbeto
    Member

    We should just use the CDK instead of setting up the media query ourselves.

  3. added
    P4
    good first issue
    and removed
    needs triage
    on Jun 17, 2024
  4. added 5 commits that reference this issue on Jun 25, 2024
    13ac64e
    38fd52f
    91ebc75
    4a11697
    043595e
  5. IronKai commented on Jul 19, 2025

    @IronKai

    Hi! I'd like to help fix this documentation issue. I can update the StackBlitz demo to use the current addEventListener/removeEventListener methods instead of the deprecated ones.
    I have 4 years of Angular experience and would be happy to submit a pull request with the fix. Could you please confirm this is the right approach and if there are any specific guidelines for updating the demo?"

  6. added 3 commits that reference this issue on May 31, 2026
    ff0fc7d
    bde711d
    4c9546e
  7. added a commit that references this issue on Jun 30, 2026
    8342202
  8. added a commit that references this issue on Nov 15, 2026
    a7c387e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4area: material/sidenavdocsgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions