Skip to content

Commit

Permalink
Merge pull request #375 from christophercr/feature/ng-keepalive
Browse files Browse the repository at this point in the history
feat(stark-starter): add NgIdleKeepAlive module in app module
  • Loading branch information
SuperITMan authored May 16, 2018
2 parents 9bb0a5a + 305989b commit 2324fc4
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 2324fc4

Please sign in to comment.