Skip to content

Commit

Permalink
feat(stark-starter): add NgIdleKeepAlive module in app module
Browse files Browse the repository at this point in the history
ISSUES CLOSED: #261
  • Loading branch information
christophercr committed May 16, 2018
1 parent 9bb0a5a commit 305989b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions starter/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -132,6 +133,7 @@ export const metaReducers: MetaReducer<State>[] = !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(),
Expand Down
1 change: 1 addition & 0 deletions starter/src/stark-app-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"sessionTimeoutWarningPeriod": 20,
"keepAliveUrl": "http://localhost:5000/keepalive",
"keepAliveInterval": 20,
"keepAliveDisabled": true,
"angularDebugInfoEnabled": null,
"debugLoggingEnabled": null,
"loggingFlushPersistSize": 50,
Expand Down

0 comments on commit 305989b

Please sign in to comment.