aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/app-routing.module.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/app-routing.module.ts')
-rw-r--r--client/src/app/app-routing.module.ts7
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 @@
1import { NgModule } from '@angular/core' 1import { NgModule } from '@angular/core'
2import { Routes, RouterModule, PreloadAllModules } from '@angular/router' 2import { Routes, RouterModule } from '@angular/router'
3
4import { PreloadSelectedModulesList } from './core'
3 5
4const routes: Routes = [ 6const 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})
25export class AppRoutingModule {} 28export class AppRoutingModule {}