creativetimofficial / material-dashboard-angular2

Material Dashboard Angular
https://demos.creative-tim.com/material-dashboard-angular2/
MIT License
1.01k stars 2.09k forks source link

Disabling the Sidebar on selected pages #85

Open AmerikM opened 4 years ago

AmerikM commented 4 years ago

Hello, Ive had trouble to disable the sidebar on certain pages. Im trying to hide it on the html with the ngIF, but cant see a correct way to disable it and then re-enable it when needed.

Could you guys point me on the right track?

For example, Ive made my own integration of login page, therefore i dont need the sidebar appearing before my user is logged. I have the corresponding boolean to check and verify is the user is logged. How do i toogle the sidebar for this to work.

chelaruc commented 4 years ago

Hi, @AmerikM. Thank you for using our product. You need to have two layouts for this, one for the Auth pages and one for the Dashboard. Best, Ciprian