mode_edit codeAPI / @angular/routerprovideRouteslinkfunction 稳定Registers routes.注册路由。provideRoutes(routes: Routes): any参数routesType: Routes.返回值any说明linkExamplelink例子link@NgModule({ imports: [RouterModule.forChild(ROUTES)], providers: [provideRoutes(EXTRA_ROUTES)] }) class MyNgModule {}