This is the archived documentation for Angular v6. Please visit angular.io to see documentation for the current version of Angular.

PreloadAllModules

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

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

Methods

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

Parameters

route

Type: Route.

fn

Type: () => Observable.

Returns

Observable<any>