import { PreloadingStrategy , Route } from '@angular/router' ; import { Observable } from 'rxjs' ; export class CustomPreloadingStrategy implements PreloadingStrategy { preload ( route , fn ) { if ( true ) { return fn ( ) ; } } }