title: How to hide the SIDEBAR on login page angular 2
body: <p>I am currently working on Angular 2 and I am stuck on one thing. I want to hide my sidebar component on just my login page and after logging in, display it like normal. But I can't find my way on how to do it. I have looked around and found *ngIf="nav.visible" but it throws console error and it's not good for production mode. Besides, it is for navbar and I am talking about sidebar.
  Any idea how to get it done?
  Any help would be highly appreciated. Thanks.</p>