import { NgModule } from '@angular/core' ; import { RouterModule , Routes } from '@angular/router' ; import { routingPathConfig } from '@config/routing-path.config' ; import { DataTableComponent } from './data-table.component' ; const routes = [ { path : routingPathConfig . dataTable . default , component : DataTableComponent , pathMatch : 'full' , data : { title : '数据表' } } ] ; @ NgModule ( { imports : [ RouterModule . forChild ( routes ) ] , declarations : [ ] , exports : [ RouterModule ] } ) export class DataTableRoutingModule { }