Questions tagged [ng2-idle]

Questions related to ng2-idle module for Angular2 application

ng2-idle is a module for responding to idle users in Angular2 application. It is mainly used for detecting when users are idle.

7 questions
3
votes
1 answer

Angular ng2-idle subscribe on multiple pages

import { Idle, DEFAULT_INTERRUPTSOURCES } from '@ng-idle/core'; import { Keepalive } from '@ng-idle/keepalive'; export class Calender { idleState = 'Not started.'; timedOut = false; lastPing?: Date = null; constructor(private…
PAR
  • 431
  • 1
  • 9
  • 21
3
votes
3 answers

ng2-idle modal ok should resume idle

Angular4 with @ng2-idle trying to capture the inactivity of the user. code example link https://hackedbychinese.github.io/ng2-idle/ I am trying to customize it so every time user goes idle i show modal with ok button. and user will able to resume…
d-man
  • 57,473
  • 85
  • 212
  • 296
2
votes
1 answer

@ng-idle/core document is not defined when using Angular Universal and Webpack Server

My project is Angular 6. I am trying to use Angular Universal: https://github.com/angular/angular-cli/wiki/stories-universal-rendering I have done all the setup. At the end when i run node dist/server.js, i get into following issue.…
learning...
  • 3,104
  • 10
  • 58
  • 96
0
votes
1 answer

ng-idle subscriptions not working inside another subscription

I am using the @ng-idle/core package to implement an idle timeout in my angular 2 application (at angular 14 currently). On exceeding the idle timeout, the code logs the user out. The idle detection and logging out functionality has been written…
BoomDizzle
  • 188
  • 1
  • 1
  • 12
0
votes
0 answers

Angular "ng-idle": ng-idle package causing issue during multiple tabs with different app with 'ng-idle' use

In angular, I have used 'ng-idle' package to logout inactive logins. I have used 'ng-idle' package in two different applications. When I open one application in browser at a time then its working properly. But when I open those two applications in…
Rakesh Hiray
  • 721
  • 3
  • 15
0
votes
1 answer

ng2-idle hookup of mousemove event on HTML was triggering change detection

ng2-idle hookup of mousemove event on HTML was causing change detection and repaint of DOM elements for every event. Which also is blocking default click behavior of anchor tag (link). How to fix this?
Temp O'rary
  • 5,366
  • 13
  • 49
  • 109
0
votes
1 answer

ng2-idle server pre rendering issue - ReferenceError: document is not defined

How do I make ng2-idle for idle timeout/keepalive work with pre-rendering in Angular 4. I followed the following link for implementation https://hackedbychinese.github.io/ng2-idle/ It works fine without server pre-rendering but I keep getting the…
Vinod
  • 343
  • 1
  • 4
  • 14