DISCLAIMER : my title could not be accurate because I don't really know what should I do to achieve what I want, that's the purpose of this question ;)
I'm building a standard Angular 5 app. The boostraped component is AppComponent as generated by the CLI. Its template contains a nice drawer, a toolbar and the router-outlet to change the content based on navigation. Everything works as intended.
The problem is that I need 2 pages that wouldn't fit in this template. The homepage when not logged in with log in form and another with a create account form.
I can do that with an ngIf in my template and having 2 "templates" in one (one with the drawer, one without) and based on navigation the page will totally changed its look. The "newer" template would contain just a router-outlet so I can have completely different component. I don't want to have a single template with a router-outlet because drawer and toolbar would always be redrawn when navigating (because component is changing).
But in my opinion it's weird to do things like that... I'm already using ngIf on div but for "little" things on the page, not for the entire page!
Is there another way to do that?