Files
cbsnexora/src/app/home/home-routing.module.ts
T
Abhay ChawlaandGitHub b54e2a2b01 refractor: delete redundant files (#295)
* Remove obsolete index.ts files.
* Remove About Module.

Fixes #294
2018-08-12 16:39:12 +05:30

39 lines
896 B
TypeScript

import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
/** Routing Imports */
import { Route } from '../core/route/route.service';
/** Translation Imports */
import { extract } from '../core/i18n/i18n.service';
import { HomeComponent } from './home.component';
import { DashboardComponent } from './dashboard/dashboard.component';
const routes: Routes = [
Route.withShell([
{
path: '',
redirectTo: '/home',
pathMatch: 'full'
},
{
path: 'home',
component: HomeComponent,
data: { title: extract('Home') }
},
{
path: 'dashboard',
component: DashboardComponent,
data: { title: extract('Dashboard'), breadcrumb: 'Dashboard' }
}
])
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
providers: []
})
export class HomeRoutingModule { }