Skip to content

Instantly share code, notes, and snippets.

@CharlieGreenman
Created August 29, 2019 18:06
Show Gist options
  • Save CharlieGreenman/e6058f6bc449b2f3d9df6a44c6fecbfc to your computer and use it in GitHub Desktop.
Save CharlieGreenman/e6058f6bc449b2f3d9df6a44c6fecbfc to your computer and use it in GitHub Desktop.
app.routing.module.ts with CustomPreloadingService Provider
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