PreloadAllModules

class

npm Package @angular/router
Module import { PreloadAllModules } from '@angular/router';
Source router/src/router_preloader.ts

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

Overview

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

How To Use

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

Members

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

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