provideRoutes

Stable

Function

What it does

Registers routes.

How to use

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

Class Export

exported from router/index defined in router/src/router_module.ts