aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/app-routing.module.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-10-09 14:28:44 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-10-09 14:28:44 +0200
commita685e25ca05f08ad1b3f7fbaccc8744727bd8d27 (patch)
treee50fbc2f260a0017113c4668c3c0f3d2fd76ab87 /client/src/app/app-routing.module.ts
parent2ed6a0aedc2d2f6b1ac2fd9a1ac137772831f713 (diff)
downloadPeerTube-a685e25ca05f08ad1b3f7fbaccc8744727bd8d27.tar.gz
PeerTube-a685e25ca05f08ad1b3f7fbaccc8744727bd8d27.tar.zst
PeerTube-a685e25ca05f08ad1b3f7fbaccc8744727bd8d27.zip
Try to optimize frontend
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 {}