• Overview
@angular/router

ROUTES

constant

The DI token for a router configuration.

API

  
    const ROUTES: InjectionToken<Route[][]>;
  
  

Description

The DI token for a router configuration.

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

Jump to details
OSZAR »