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

Function withRouterResources

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 1

routerFeatureFunction · 0.85

Tested by

no test coverage detected