I cannot use input mode in sidenav of angular mdb5


Topic: I cannot use input mode in sidenav of angular mdb5

Nguyen Ba Tung pro premium asked 4 years ago

I use mdb5 angular but can't use change mode for sidenav

change mode

add module

error


Arkadiusz Idzikowski staff answered 3 years ago

Thank you for reporting this problem, we will take a closer look at that. As a workaround for now please try to use setMode method instead of mode input. Use this code in your components TS file:

@ViewChild('sidenav') sidenav: MdbSidenavComponent;

ngAfterViewInit(): void { this.sidenav.setMode('push'); }

Arkadiusz Idzikowski staff answered 3 years ago

This problem should be fixed in v1.0.0-beta4. Please update your version.


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: MDB Standard
  • MDB Version: 3.2.0
  • Device: PC
  • Browser: Chrome
  • OS: Linux
  • Provided sample code: No
  • Provided link: No