Skip to content
@ng-doc/app / Class

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 NgDocRoutePreloader decides, instead of every route at once.

Set it as the router's preloading strategy to preload pages on intent:

Decorators
@Service
Implements
PreloadingStrategy
DeclarationTypeScript
@Service()
export class NgDocPreloadingStrategy implements PreloadingStrategy { … }

Members

Constructor

1
()
—

Methods

1
(…): Observable<unknown>

Loads a lazy route when it leads to a page that is being preloaded.

Symbol
Kind
Class
Decorators
@Service
Implements
PreloadingStrategy
Scope
@ng-doc/app
Edit this page