填写这份《一分钟调查》,帮我们(开发组)做得更好!去填写Home

RouterPreloader

The preloader optimistically loads all router configurations to make navigations into lazily-loaded sections of the application faster.

查看"说明"...

      
      class RouterPreloader implements OnDestroy {
  setUpPreloading(): void
  preload(): Observable<any>
}
    

说明

The preloader runs in the background. When the router bootstraps, the preloader starts listening to all navigation events. After every such event, the preloader will check if any configurations can be loaded lazily.

If a route is protected by canLoad guards, the preloaded will not load it.

方法

setUpPreloading(): void
      
      setUpPreloading(): void
    
参数

没有参数。

返回值

void

preload(): Observable<any>
      
      preload(): Observable<any>
    
参数

没有参数。

返回值

Observable<any>