Questions tagged [ng-idle]

an angularjs module to timed out the application when the screen is idle.

An angularjs module to timed out the application when the screen is idle as per the parametrised settings, by using the IdleProvider and KeepAliveProvider.

Can see the demo in the link

61 questions
2
votes
0 answers

Scheduled timer gets stuck in angular after switching to another window on browser

I am trying to implement Auto Logout feature after 20minutes of inactivity of user. Therefore, I used @ng-idle/core npm package inside my project to set user idle after 20minutes of inactivity and to display popup which asks either logout or stay…
2
votes
0 answers

I have problem in understanding how to write unit test for ng-idle core in my Application

I am using ng idle core in my Angular8 app to handle idle timeout scenario, I dont have clue how to write unit tests by setting a mock value for Idle. It would be helpful if anyone can assist me by giving a plunkr example or sharing the code…
2
votes
1 answer

Ng-idle in angular 6 is getting paused when system goes to sleep

I have used Ng Idle version 6.0.0-beta.3 and using angular 6, this library is working fine system is on but timer stops when system goes to sleep mode. How to achieve idle state is system goes to sleep? import {Idle, DEFAULT_INTERRUPTSOURCES}…
2
votes
1 answer

using @ng-idle/core globally without the login page using it

I have a situation in ionic 2/angular2 i really do not know how to handle it, and would either need some sort of advice of a better way, or guide on my codes. I have an app.component file which is defined as below (this is just a sample to just…
Dexter
  • 93
  • 9
2
votes
3 answers

How to restrict browser tab message while using ng-idle

I used AngularJS ng-idle in my application. As a result 'your session has expired' message shows on the browser tab when I moved to any other tab. I need ng-idle but don't want to show that message. How can I restrict. please…
Haris Aju
  • 79
  • 1
  • 6
2
votes
2 answers

Change idle duration at runtime in AngularJS Ng-Idle

I am using ng-idle to detect inactivity. The idleDuration is set like so: .config(function($idleProvider, $keepaliveProvider) { // configure $idle settings $idleProvider.idleDuration(5); // in seconds …
user2939415
  • 864
  • 1
  • 11
  • 22
1
vote
1 answer

What is KeepAlive in Angular Application?

This question sounds simple but it seems like there is not much explanation on the web. I am trying to implement ngIdle, and had followed some guides from the internet and they included keepAlive in the implementation. But it didn't really explain…
Think Tank
  • 43
  • 8
1
vote
0 answers

ng-idle does not works when Mac goes to sleep

I want to logout user after 10mins of inactivity, I'm using ng-idle v6.0.0-beta.5 https://www.npmjs.com/package/@ng-idle/core When computer goes to sleep, ng-idle stops working. In order to fix this issue, I have setTimeout to false before start…
1
vote
2 answers

Popup coming at the end of HTML element

I am building angular 4 app with session time out example (ng-idle) where am rendering pop up (bootstrap 3) when user not doing any activity. this.idle.onIdleStart.subscribe(() => this.isIdleState = true); It is rdering pop when this flag…
1
vote
0 answers

How to run protractor tests with ng-idle module

I have installed ng-idle module to my AngularJS application. I set up this module next way: .config(['IdleProvider', IdleProvider => { // Timer before logout (seconds) IdleProvider.timeout(60); IdleProvider.keepalive(false); }]) .run(['Idle'…
Vadym Shashkov
  • 118
  • 2
  • 14
1
vote
3 answers

Configure IdleProvider and KeepaliveProvider from properties file

I"m very new to Angular and I'm having problems configuring IdleProvider and KeepaliveProviders. Please understand the question: I've already configured those two providers correctly and my idle timeout is working. What I'm looking for is how to…
mgibson
  • 187
  • 1
  • 2
  • 6
1
vote
1 answer

AngularJS Error - Failed to instantiate module ngIdle

I have an Angular app reporting a persistent error. Failed to instantiate module ngIdle due to ... Error: $injector:nomod Module Unavailable Module 'ngIdle' is not available! You either misspelled the module name or forgot to load it. If…
Vahe
  • 1,699
  • 3
  • 25
  • 76
1
vote
2 answers

Angular - Error: [$injector:unpr] Unknown provider: IdleProvider

Getting the error Error: [$injector:unpr] Unknown provider: IdleProvider in my application when it is deployed to our staging server using dokku but I am not getting it when running it on my local machine. I'm using ng-idle 1.2.1 I've found this…
cyclic
  • 402
  • 1
  • 6
  • 17
1
vote
0 answers

ng-Idle injector error when angular.bootstrap

I'm getting an $injector:modulerr error index.html (loading the idle js at the end, after everything) Angular, ngIdle app = angular.module("lpApp", ['ngGrid', 'ngCookies', 'ui.sortable',…
1
vote
1 answer

ng-idle cannot read a property

I'm updating the angular.js vesion but the project is using this depency angular-idle but it keeps telling me "Cannot read property 'idle' of undefined" this is the code. var smartApp = angular.module("b2bApp", [ "ngResource", "ngRoute", …
Alejandro Rangel
  • 1,670
  • 1
  • 20
  • 35