import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { PlatformComponent } from './platform.component'; const routes: Routes = [ { path: '', redirectTo: '0/0/0/home', pathMatch: 'full'}, { path: ':systemId/:tableId/:folderId', component: PlatformComponent, children: [ { path: '', redirectTo: 'home', pathMatch: 'full'}, { path: 'home', loadChildren: './home/home.module#HomeModule' }, { path: 'analysis', loadChildren: './analysis/analysis.module#AnalysisModule' }, { path: 'record', loadChildren: './record/record.module#RecordModule' }, { path: 'demo', loadChildren: '../../../demo/demo.module#DemoModule' } ] } ]; @NgModule({ imports: [RouterModule.forChild(routes)], exports: [RouterModule] }) export class PlatformRoutingModule { }