import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { LineChartComponent } from './line-chart.component'; import { BigDataLineChartComponent } from './big-data-line-chart/big-data-line-chart.component'; import { PointValueLineChartComponent } from './point-value-line-chart/point-value-line-chart.component'; import { AnnotationsLineChartComponent } from './annotations-line-chart/annotations-line-chart.component'; import { NoiseAnalysisLineChartComponent } from './noise-analysis-line-chart/noise-analysis-line-chart.component'; const routes: Routes = [ { path: 'basic-line-chart', component: LineChartComponent, data: { path: 'layer3/charts/line-chart/basic-line-chart', breadcrumb: '基础折线图' } }, { path: 'big-data-line-chart', component: BigDataLineChartComponent, data: { path: 'layer3/charts/line-chart/big-data-line-chart', breadcrumb: '大数据量线图' } }, { path: 'point-value-line-chart', component: PointValueLineChartComponent, data: { path: 'layer3/charts/line-chart/point-value-line-chart', breadcrumb: '点值折线图' } }, { path: 'annotations-line-chart', component: AnnotationsLineChartComponent, data: { path: 'layer3/charts/line-chart/annotations-line-chart', breadcrumb: '带标记折线图' } }, { path: 'noiseAnalysis-line-chart', component: NoiseAnalysisLineChartComponent, data: { path: 'layer3/charts/line-chart/noiseAnalysis-line-chart', breadcrumb: '声学分析折线图' } } ]; @NgModule({ imports: [RouterModule.forChild(routes)], exports: [RouterModule] }) export class LineChartRoutingModule { }