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 @angular/router/index defined in @angular/router/src/router_module.ts