MCPcopy Create free account
hub / github.com/angular/angular / withRouterConfig

Function withRouterConfig

packages/router/src/provide_router.ts:630–633  ·  view source on GitHub ↗
(options: RouterConfigOptions)

Source from the content-addressed store, hash-verified

628 * @publicApi
629 */
630export function withRouterConfig(options: RouterConfigOptions): RouterConfigurationFeature {
631 const providers = [{provide: ROUTER_CONFIGURATION, useValue: options}];
632 return routerFeature(RouterFeatureKind.RouterConfigurationFeature, providers);
633}
634
635/**
636 * A type alias for providers returned by `withHashLocation` for use with `provideRouter`.

Calls 1

routerFeatureFunction · 0.85