This is probably really easy, but for some reason I just can't get to figure it out. I have some html in my app component:
<div class="top-half">
<app-top-bar></app-top-bar>
</div>
<div class="bottom-half">
<app-sidebar></app-sidebar>
<router-outlet></router-outlet>
</div>
This is cool, but I can't figure a way to display a whole new page, login page for example, without having all the persistent elements (top-bar, side-bar, etc...). Is there a way to have some sort of a "outer level" router outlet to control the navigation between the pages. Thank you in advance
Edit, here is the router:
const routes: Routes = [
{ path: '', redirectTo: 'boards', pathMatch: 'full' },
{ path: 'boards', component: BoardComponent },
{ path: 'boards/:boardId', component: BoardComponent },
]
@NgModule({
imports: [RouterModule.forRoot(routes)],
exports: [RouterModule]
})
export class AppRoutingModule { }