NgDocPreloadingStrategy
The router preloading strategy of NgDoc: it loads a lazy route only when the reader is about to open one of its pages, as decides, instead of every route at once.
Set it as the router's preloading strategy to preload pages on intent:
provideRouter (routes, withPreloading (NgDocPreloadingStrategy ));- Decorators
@Service - Implements
PreloadingStrategy
DeclarationTypeScript
@Service ()
export class NgDocPreloadingStrategy implements PreloadingStrategy { … }Members
Constructor1 | ||||||||||
() | — | |||||||||
Signature | ||||||||||
Methods1 | ||||||||||
(…): | Loads a lazy route when it leads to a page that is being preloaded. | |||||||||
Signature Parameters
Returns | ||||||||||
No members match.