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

Function withRouterResources

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

Source from the content-addressed store, hash-verified

940 * @returns A set of providers for use with `provideRouter`.
941 */
942export function withRouterResources(): RouterResourcesFeature {
943 const providers = [
944 {
945 provide: ROUTER_RESOURCES_FEATURE,
946 useValue: {
947 setupAndRunResources,
948 createResourceOutletBindingEffects,
949 },
950 },
951 ];
952 return routerFeature(RouterFeatureKind.RouterResourcesFeature, providers);
953}
954
955/**
956 * Options to configure router error boundary behavior when using `withErrorBoundaries`.

Callers 3

setupRouterFunction · 0.90
setUpRouterFunction · 0.90

Calls 1

routerFeatureFunction · 0.85

Tested by 1

setUpRouterFunction · 0.72