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

Function withRouterResources

packages/router/src/provide_router.ts:925–936  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

923 * @returns A set of providers for use with `provideRouter`.
924 */
925export function withRouterResources(): RouterResourcesFeature {
926 const providers = [
927 {
928 provide: ROUTER_RESOURCES_FEATURE,
929 useValue: {
930 setupAndRunResources,
931 createResourceOutletBindingEffects,
932 },
933 },
934 ];
935 return routerFeature(RouterFeatureKind.ViewTransitionsFeature, providers);
936}
937
938/**
939 * A type alias that represents all Router features available for use with `provideRouter`.

Callers 2

provideRouterFunction · 0.85

Calls 1

routerFeatureFunction · 0.85

Tested by

no test coverage detected