I'm currently tackling a challenge in an Angular project utilizing the Material Library. My issue lies in implementing a method to open the sidenav. By default, it should use mode="side", but for smaller devices, I need it to stick with mode="over". I have explored suggestions involving Angular Material 2, but it seems that they are no longer functional due to deprecated tags and imports.
sidebar.component.html
<mat-sidenav-container class="sidebar-sidenav-container">
<mat-sidenav #snav mode="side" fixedTopGap="56" opened="false">
<app-side-navbar></app-side-navbar>
</mat-sidenav>
<mat-sidenav-content class="router-container">
<router-outlet></router-outlet>
</mat-sidenav-content>
</mat-sidenav-container>
I attempted to incorporate old functionalities from Angular Material version 2, however, certain tags and features are no longer compatible.