()
| 940 | * @returns A set of providers for use with `provideRouter`. |
| 941 | */ |
| 942 | export 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`. |