W3cubDocs

/Angular

NoPreloading

class final

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>

© 2010–2023 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/api/router/NoPreloading