From acdd311f8e5527750c59f832dbff39f8884e1a1a Mon Sep 17 00:00:00 2001 From: Sebastian Stehle Date: Sun, 11 Feb 2018 14:24:30 +0100 Subject: [PATCH] Preloading enabled. --- src/Squidex/app/app.routes.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Squidex/app/app.routes.ts b/src/Squidex/app/app.routes.ts index c6ca613b6..00674bff9 100644 --- a/src/Squidex/app/app.routes.ts +++ b/src/Squidex/app/app.routes.ts @@ -6,7 +6,7 @@ */ import { ModuleWithProviders } from '@angular/core'; -import { RouterModule, Routes } from '@angular/router'; +import { PreloadAllModules, RouterModule, Routes } from '@angular/router'; import { AppAreaComponent, @@ -96,4 +96,4 @@ export const routes: Routes = [ } ]; -export const routing: ModuleWithProviders = RouterModule.forRoot(routes, { useHash: false }); \ No newline at end of file +export const routing: ModuleWithProviders = RouterModule.forRoot(routes, { useHash: false, preloadingStrategy: PreloadAllModules }); \ No newline at end of file