MCPcopy Index your code
hub / github.com/angular/angular / withPreloading

Function withPreloading

packages/router/src/provide_router.ts:583–589  ·  view source on GitHub ↗
(preloadingStrategy: Type<PreloadingStrategy>)

Source from the content-addressed store, hash-verified

581 * @publicApi
582 */
583export function withPreloading(preloadingStrategy: Type<PreloadingStrategy>): PreloadingFeature {
584 const providers = [
585 {provide: ROUTER_PRELOADER, useExisting: RouterPreloader},
586 {provide: PreloadingStrategy, useExisting: preloadingStrategy},
587 ];
588 return routerFeature(RouterFeatureKind.PreloadingFeature, providers);
589}
590
591/**
592 * A type alias for providers returned by `withRouterConfig` for use with `provideRouter`.

Callers 3

forRootMethod · 0.90

Calls 1

routerFeatureFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…