fix: multiple usage of app header (#48)
Remove multiple usage of app header component and use the shell component to route with shell, loading the header only once initially. Fixes #47
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { Routes, RouterModule } from '@angular/router';
|
||||
|
||||
import { Route, extract } from '@app/core';
|
||||
import { NavigationComponent } from './navigation.component';
|
||||
|
||||
const routes: Routes = [
|
||||
{ path: 'navigation', component: NavigationComponent},
|
||||
Route.withShell([
|
||||
{ path: 'navigation', component: NavigationComponent}
|
||||
])
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
|
||||
Reference in New Issue
Block a user