class
Provides a preloading strategy that preloads all modules as quickly as possible.
class PreloadAllModules implements PreloadingStrategy { preload(route: Route, fn: () => Observable<any>): Observable<any> }
RouterModule.forRoot(ROUTES, {preloadingStrategy: PreloadAllModules})
preload() | ||||||
---|---|---|---|---|---|---|
|
route | Route | |
fn | () => Observable |
Observable<any>
© 2010–2021 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v11.angular.io/api/router/PreloadAllModules