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:
Abhay Chawla
2018-06-15 00:21:22 +05:30
committed by GitHub
parent 6be70d6cb4
commit 052568bba6
9 changed files with 74 additions and 74 deletions
@@ -1,10 +1,13 @@
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { Route, extract } from '@app/core';
import { AccountingComponent } from './accounting.component';
const routes: Routes = [
{ path: 'accounting', component: AccountingComponent},
Route.withShell([
{ path: 'accounting', component: AccountingComponent}
])
];
@NgModule({
+1 -2
View File
@@ -1,4 +1,3 @@
<app-header> </app-header>
<div class="fluid-container">
<div class="container">
<div class="card-body">
@@ -47,4 +46,4 @@
</div>
</div>
</div>
</div>
</div>