W3cubDocs

/Angular 12

PreloadingStrategy

class

Provides a preloading strategy.

abstract class PreloadingStrategy {
  abstract preload(route: Route, fn: () => Observable<any>): Observable<any>
}

Provided in

Methods

abstract preload(route: Route, fn: () => Observable<any>): Observable<any>

Parameters
route Route
fn () => Observable
Returns

Observable<any>

© 2010–2021 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v12.angular.io/api/router/PreloadingStrategy