function
Registers a DI provider for a set of routes.
provideRoutes(routes: Routes): any
routes | Routes | The route configuration to provide. |
any
@NgModule({ imports: [RouterModule.forChild(ROUTES)], providers: [provideRoutes(EXTRA_ROUTES)] }) class MyNgModule {}
© 2010–2020 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v10.angular.io/api/router/provideRoutes