aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app')
-rw-r--r--client/src/app/app-routing.module.ts9
1 files changed, 7 insertions, 2 deletions
diff --git a/client/src/app/app-routing.module.ts b/client/src/app/app-routing.module.ts
index 8036c52e6..191ae6974 100644
--- a/client/src/app/app-routing.module.ts
+++ b/client/src/app/app-routing.module.ts
@@ -1,5 +1,5 @@
1import { NgModule } from '@angular/core' 1import { NgModule } from '@angular/core'
2import { Routes, RouterModule } from '@angular/router' 2import { Routes, RouterModule, PreloadAllModules } from '@angular/router'
3 3
4const routes: Routes = [ 4const routes: Routes = [
5 { 5 {
@@ -14,7 +14,12 @@ const routes: Routes = [
14] 14]
15 15
16@NgModule({ 16@NgModule({
17 imports: [ RouterModule.forRoot(routes) ], 17 imports: [
18 RouterModule.forRoot(routes, {
19 useHash: Boolean(history.pushState) === false,
20 preloadingStrategy: PreloadAllModules
21 })
22 ],
18 exports: [ RouterModule ] 23 exports: [ RouterModule ]
19}) 24})
20export class AppRoutingModule {} 25export class AppRoutingModule {}