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[]): EnvironmentProvidersIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
RouterRoutesRouterFeatureswithComponentInputBindingwithPreloadingwithRouterConfigRouterStateRouterEvent