PreloadAllModules
class
npm Package | @angular/router |
---|---|
Module | import { PreloadAllModules } from '@angular/router'; |
Source | router/src/router_preloader.ts |
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–2018 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v5.angular.io/api/router/PreloadAllModules