Created
August 29, 2019 18:06
-
-
Save CharlieGreenman/e6058f6bc449b2f3d9df6a44c6fecbfc to your computer and use it in GitHub Desktop.
app.routing.module.ts with CustomPreloadingService Provider
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { NgModule } from '@angular/core'; | |
import { RouterModule } from '@angular/router'; | |
import { CustomPreloadingService } from '@razroo/common/ui/services'; | |
@NgModule({ | |
imports: [ | |
RouterModule.forRoot( | |
[ | |
// ...routes go here | |
], | |
{ | |
preloadingStrategy: CustomPreloadingService | |
//... | |
} | |
) | |
], | |
exports: [RouterModule] | |
}) | |
export class RazrooAppRoutingModule {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment