@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;
  
  
Jump to details