From 305989bcd788ae4712cba7a19e6736e0d03df98e Mon Sep 17 00:00:00 2001 From: "Cortes Christopher (External)" Date: Wed, 16 May 2018 14:44:52 +0200 Subject: [PATCH] feat(stark-starter): add NgIdleKeepAlive module in app module ISSUES CLOSED: #261 --- starter/src/app/app.module.ts | 2 ++ starter/src/stark-app-config.json | 1 + 2 files changed, 3 insertions(+) diff --git a/starter/src/app/app.module.ts b/starter/src/app/app.module.ts index 580c24cfe9..133525574b 100644 --- a/starter/src/app/app.module.ts +++ b/starter/src/app/app.module.ts @@ -3,6 +3,7 @@ import { BrowserModule } from "@angular/platform-browser"; import { FormsModule } from "@angular/forms"; import { UIRouterModule } from "@uirouter/angular"; import { NgIdleModule } from "@ng-idle/core"; +import { NgIdleKeepaliveModule } from "@ng-idle/keepalive"; import { validateSync } from "class-validator"; import { ActionReducer, ActionReducerMap, MetaReducer, StoreModule } from "@ngrx/store"; import { storeFreeze } from "ngrx-store-freeze"; @@ -132,6 +133,7 @@ export const metaReducers: MetaReducer[] = !environment.production ? [log }), TranslateModule.forRoot(), NgIdleModule.forRoot(), + NgIdleKeepaliveModule.forRoot(), // FIXME: disabled in stark-app-config.json for now until json-server is integrated StarkHttpModule.forRoot(), StarkLoggingModule.forRoot(), StarkSessionModule.forRoot(), diff --git a/starter/src/stark-app-config.json b/starter/src/stark-app-config.json index 9cf51600bf..8b30715932 100644 --- a/starter/src/stark-app-config.json +++ b/starter/src/stark-app-config.json @@ -10,6 +10,7 @@ "sessionTimeoutWarningPeriod": 20, "keepAliveUrl": "http://localhost:5000/keepalive", "keepAliveInterval": 20, + "keepAliveDisabled": true, "angularDebugInfoEnabled": null, "debugLoggingEnabled": null, "loggingFlushPersistSize": 50,