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()
, RouterModule.forChild()
, provideRoutes
, or Router.resetConfig()
.
© 2010–2021 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v12.angular.io/api/router/ROUTES