provideRoutes
Registers routes.
provideRoutes(routes: Routes): any
Parameters
routes |
Type: |
Returns
any
Usage notes
Example
@NgModule({
imports: [RouterModule.forChild(ROUTES)],
providers: [provideRoutes(EXTRA_ROUTES)]
})
class MyNgModule {}