feat: add navigation component (#590)

Fixes: #256
This commit is contained in:
punwai
2020-05-24 22:28:47 +05:30
committed by GitHub
parent 7a5069e590
commit e2707a1d0a
43 changed files with 1713 additions and 9 deletions
@@ -11,13 +11,19 @@ import { extract } from '../core/i18n/i18n.service';
/** Custom Components */
import { NavigationComponent } from './navigation.component';
/** Custom Resolvers */
import { OfficesResolver } from './offices.resolver';
/** Navigation Routes */
const routes: Routes = [
Route.withShell([
{
path: 'navigation',
component: NavigationComponent,
data: { title: extract('Navigation'), breadcrumb: 'Navigation' }
data: { title: extract('Navigation'), breadcrumb: 'Navigation' },
resolve: {
offices: OfficesResolver
}
}
])
];
@@ -30,6 +36,8 @@ const routes: Routes = [
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
providers: []
providers: [
OfficesResolver
]
})
export class NavigationRoutingModule { }