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

Function withRouterConfig

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

Source from the content-addressed store, hash-verified

635 * @publicApi
636 */
637export function withRouterConfig(options: RouterConfigOptions): RouterConfigurationFeature {
638 const providers = [{provide: ROUTER_CONFIGURATION, useValue: options}];
639 return routerFeature(RouterFeatureKind.RouterConfigurationFeature, providers);
640}
641
642/**
643 * A type alias for providers returned by `withHashLocation` for use with `provideRouter`.

Calls 1

routerFeatureFunction · 0.85