W3cubDocs

/Angular 10

PreloadAllModules

class

Provides a preloading strategy that preloads all modules as quickly as possible.

See more...

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

Description

RouterModule.forRoot(ROUTES, {preloadingStrategy: PreloadAllModules})

Methods

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

Parameters
route Route
fn () => Observable
Returns

Observable<any>

© 2010–2020 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v10.angular.io/api/router/PreloadAllModules