import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import {GoodsTypeComponent} from './goods-type/goods-type.component'; import {BrandComponent} from './brand/brand.component'; const routes: Routes = [ { path: 'goods-type', component: GoodsTypeComponent }, { path: 'brand', component: BrandComponent }, ]; @NgModule({ imports: [RouterModule.forChild(routes)], exports: [RouterModule] }) export class ConfigManageRoutingModule { }