On this page
ROUTES
const
The DI token for a router configuration.
const ROUTES: InjectionToken<Route[][]>;
Description
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–2022 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v13.angular.io/api/router/ROUTES