• Overview
@angular/router

provideRoutes

function
Deprecated

Registers a DI provider for a set of routes.

  
    function provideRoutes(  routes: Routes): Provider[];
  
  

provideRoutes

Registers a DI provider for a set of routes.

@deprecated

If necessary, provide routes using the ROUTES InjectionToken.

@paramroutesRoutes

The route configuration to provide.

@returnsProvider[]
Jump to details