Skip to content
masterclass Buddy

Angular · Function

provideRouter

provideRouter sets up Angular Router providers from a route list. You can pass optional feature functions to change router behavior.

Last updated

Syntax

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

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • Router
  • Routes
  • RouterFeatures
  • withComponentInputBinding
  • withPreloading
  • withRouterConfig
  • RouterState
  • RouterEvent

Source: provideRouter • Angular. Checked 2026-11-03.