W3cubDocs

/Angular

ROUTES

const

The DI token for a router configuration.

See more...

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(), provideRouter, or Router.resetConfig().

© 2010–2023 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/api/router/ROUTES