angular / 12.2.13 / api / router / routes.html /

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(), 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