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