Different layout for angular2 login page
<p>I have a normal layout with a tool- and sidebar for all my pages, but they should not be visible when the user goes to the login or register page. In AngularJS it was easy with ui-router to include a route before all other pages where you could define a layout.</p>

<p>But how to do it in Angular2 with the native router? Should I use <code>ngIf</code>to display the tool- and sidebar or is there a better way?</p>