Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
Angular has a new websiteHead to Angular.devHome
/

This is the archived documentation for Angular v17. Please visit angular.dev to see this page for the current version of Angular.

NoPreloading

Provides a preloading strategy that does not preload any modules.

See more...

      
      class NoPreloading implements PreloadingStrategy {
preload(route: Route, fn: () => Observable<any>): Observable<any> }

Provided in

  • 'root'

Description

This strategy is enabled by default.

Methods

      
      preload(route: Route, fn: () => Observable<any>): Observable<any>
    
Parameters
route Route
fn () => Observable<any>
Returns

Observable<any>