src/app/modules/dashboard/dashboard.routing.module.ts
Модуль маршрутизации для рабочего стола
import { RouterModule, Routes } from '@angular/router';
import { NgModule } from '@angular/core';
import { DashboardComponent } from './dashboard.component';
import { DashboardHomeComponent } from './home/home';
const DASHBOARD_ROUTES: Routes = [
{
path: '', component: DashboardComponent,
children: [
{path: '', redirectTo: 'home'},
{path: 'home', component: DashboardHomeComponent},
]
},
];
/**
* Модуль маршрутизации для рабочего стола
*/
@NgModule({
imports: [
RouterModule.forChild(DASHBOARD_ROUTES)
],
exports: [RouterModule]
})
export class DashboardRoutingModule {
}