provideRoutes

Registers routes.

注册路由。

provideRoutes(routes: Routes): any

参数

routes

Type: Routes.

返回值

any

说明

Example

例子

@NgModule({ imports: [RouterModule.forChild(ROUTES)], providers: [provideRoutes(EXTRA_ROUTES)] }) class MyNgModule {}