Trying 1500ms pre-load delay
This commit is contained in:
parent
448d073bf2
commit
b7662347c9
@ -4,7 +4,7 @@ import { Observable, timer, mergeMap, of } from 'rxjs';
|
|||||||
export class AppPreloadingStrategy implements PreloadingStrategy {
|
export class AppPreloadingStrategy implements PreloadingStrategy {
|
||||||
preload(route: Route, load: Function): Observable<any> {
|
preload(route: Route, load: Function): Observable<any> {
|
||||||
return route.data && route.data.preload
|
return route.data && route.data.preload
|
||||||
? timer(800).pipe(mergeMap(() => load()))
|
? timer(1500).pipe(mergeMap(() => load()))
|
||||||
: of(null);
|
: of(null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user