I'm currently developing an angular 4 application and I am trying to figure out how to load the login.page.ts outside of the router-outlet
This is what my home.component.html file looks like:
<div class="container">
<top-nav-bar></top-nav-bar>
<lett-nav-bar></lett-nav-bar>
<router-outlet></router-outlet>
</div>
Here are my routes configurations:
const MAINMENU_ROUTES: Routes = [
{ path: 'login', component: LoginComponent },
{ path: '', redirectTo: 'home', pathMatch: 'full'},
{ path: 'home', component: HomeComponent, canActivate: [AuthGuard]}
];
Although with this setup, I can load the login page inside the router-outlet, what I actually want is to have the login page displayed in full screen before moving on to the router-outlet.