(preloadingStrategy: Type<PreloadingStrategy>)
| 587 | * @publicApi |
| 588 | */ |
| 589 | export function withPreloading(preloadingStrategy: Type<PreloadingStrategy>): PreloadingFeature { |
| 590 | const providers = [ |
| 591 | {provide: ROUTER_PRELOADER, useExisting: RouterPreloader}, |
| 592 | {provide: PreloadingStrategy, useExisting: preloadingStrategy}, |
| 593 | ]; |
| 594 | return routerFeature(RouterFeatureKind.PreloadingFeature, providers); |
| 595 | } |
| 596 | |
| 597 | /** |
| 598 | * A type alias for providers returned by `withRouterConfig` for use with `provideRouter`. |
no test coverage detected