PreloadAllModules
Provides a preloading strategy that preloads all modules as quickly as possible.
class PreloadAllModules implements PreloadingStrategy {
preload(route: Route, fn: () => Observable<any>): Observable<any>
}
说明
RouteModule.forRoot(ROUTES, {preloadingStrategy: PreloadAllModules})