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

NoPreloading

Provides a preloading strategy that does not preload any modules.

See more...

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

Description

This strategy is enabled by default.

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>