• Overview
@angular/router

provideRouter

function

Sets up providers necessary to enable Router functionality for the application. Allows to configure a set of routes as well as extra features that should be enabled.

  
    function provideRouter(  routes: Routes,  ...features: RouterFeatures[]): EnvironmentProviders;
  
  

Sets up providers necessary to enable Router functionality for the application. Allows to configure a set of routes as well as extra features that should be enabled.

@paramroutesRoutes

A set of Routes to use for the application routing table.

@paramfeaturesRouterFeatures[]

Optional features to configure additional router behaviors.

Jump to details