diff options
Diffstat (limited to 'client/src/app/app-routing.module.ts')
-rw-r--r-- | client/src/app/app-routing.module.ts | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/client/src/app/app-routing.module.ts b/client/src/app/app-routing.module.ts index 191ae6974..0f9484344 100644 --- a/client/src/app/app-routing.module.ts +++ b/client/src/app/app-routing.module.ts | |||
@@ -1,5 +1,7 @@ | |||
1 | import { NgModule } from '@angular/core' | 1 | import { NgModule } from '@angular/core' |
2 | import { Routes, RouterModule, PreloadAllModules } from '@angular/router' | 2 | import { Routes, RouterModule } from '@angular/router' |
3 | |||
4 | import { PreloadSelectedModulesList } from './core' | ||
3 | 5 | ||
4 | const routes: Routes = [ | 6 | const routes: Routes = [ |
5 | { | 7 | { |
@@ -17,9 +19,10 @@ const routes: Routes = [ | |||
17 | imports: [ | 19 | imports: [ |
18 | RouterModule.forRoot(routes, { | 20 | RouterModule.forRoot(routes, { |
19 | useHash: Boolean(history.pushState) === false, | 21 | useHash: Boolean(history.pushState) === false, |
20 | preloadingStrategy: PreloadAllModules | 22 | preloadingStrategy: PreloadSelectedModulesList |
21 | }) | 23 | }) |
22 | ], | 24 | ], |
25 | providers: [ PreloadSelectedModulesList ], | ||
23 | exports: [ RouterModule ] | 26 | exports: [ RouterModule ] |
24 | }) | 27 | }) |
25 | export class AppRoutingModule {} | 28 | export class AppRoutingModule {} |