From f3ae606caf74c8a173ce44bf3f913f1488f97d7f Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 25 Apr 2019 10:40:01 +0200 Subject: Wait config before loading login/signup --- client/src/app/login/login-routing.module.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'client/src/app/login') diff --git a/client/src/app/login/login-routing.module.ts b/client/src/app/login/login-routing.module.ts index 4d8913041..5a41f4e7e 100644 --- a/client/src/app/login/login-routing.module.ts +++ b/client/src/app/login/login-routing.module.ts @@ -1,9 +1,8 @@ import { NgModule } from '@angular/core' import { RouterModule, Routes } from '@angular/router' - import { MetaGuard } from '@ngx-meta/core' - import { LoginComponent } from './login.component' +import { ServerConfigResolver } from '@app/core/routing/server-config-resolver.service' const loginRoutes: Routes = [ { @@ -14,6 +13,9 @@ const loginRoutes: Routes = [ meta: { title: 'Login' } + }, + resolve: { + serverConfigLoaded: ServerConfigResolver } } ] -- cgit v1.2.3