const
The DI token for a router configuration.
const ROUTES: InjectionToken<Route[][]>;
ROUTES
is a low level API for router configuration via dependency injection.
We recommend that in almost all cases to use higher level APIs such as RouterModule.forRoot()
, provideRouter
, or Router.resetConfig()
.
© 2010–2023 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/api/router/ROUTES