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
1
vote
1 answer

Auto Logout in Angular js

How do I implement auto logout after 30 minutes of idle time using the ng-idle module of Angularjs?
user1457957
  • 195
  • 1
  • 6
  • 21
1
vote
0 answers

identify if any $http calls are currently executed

I have an angularJS application that utilizes ng-idle module in order to logout the user in case he is idle. However I do not want to automatically logout in case there are any $http calls being made to the server. Does the $http service provide any…
opeled
  • 153
  • 1
  • 4
  • 12
1
vote
1 answer

Accessing scope variables when using ng-idle

ng-idle is a custom angular directive that can be found here that allows for your angular app to check to see whether or not the user is idle. Does anyone who's used this directive before know whether or not there are issues with $scope when editing…
Ajv2324
  • 422
  • 8
  • 24
1
vote
2 answers

rootScope functions not being called when using ngIdle

I am using the ngIdle library and as the documentation states there are certain methods that you can call to check for user inactivity, and I have put these on the root scope. app.run(function($rootScope) { $rootScope.$on('IdleTimeout',…
user3407039
  • 1,285
  • 5
  • 25
  • 51
0
votes
1 answer

TypeError: Object(...) is not a function at eval (eventtargetinterruptsource.js) while using ng-idle/ng-keepalive in angular 8

I want to use ng-idle/ng-keepalive in my angular 8 project, I tried installing many versions of them, but in console it is showing this error only Error: Uncaught (in promise): TypeError: Object(...) is not a function TypeError: Object(...) is not a…
0
votes
0 answers

mouseover, beforeunload are not working in rxjs fromEvent method in the bn-ng-Idel package angular

I am trying to display an alert message for my application if the user is Idle for some seconds ( 5 sec ). So I installed the bn-ng-Idle package. It works fine for the click, resize, and keypress events, but it does not work for mouseover…
vijay s
  • 147
  • 1
  • 4
  • 15
0
votes
0 answers

Cannot read properties of undefined (reading 'Injectable') at eval (bn-ng-idle.mjs:32:162) angular

I am using a library -> "bn-ng-idle": "2.0.1", and other versions are : Angular CLI: 1.7.4 Angular: 5.2.1 While doing -> ng serve getting an error : bn-ng-idle.mjs:32 Uncaught TypeError: Cannot read properties of undefined (reading 'Injectable') at…
Rakesh Saini
  • 660
  • 2
  • 7
  • 20
0
votes
1 answer

Angular exposes login and password in browser address bar

I have an Angular 9 application. Sometimes (very rare) I face a problem when my auth data is exposed right in the browser address bar E.g. instead of http://localhost:8080/#/application/48 it for some reason looks…
kirill.login
  • 899
  • 1
  • 13
  • 28
0
votes
2 answers

Vendor.js throwing syntax error for ng-idle library for IE 11

Getting syntax error in vendor.js file while running angular 9 application in IE 11. I've enabled all the polyfills and changed the target to "es5" in tsconfig.json as well. any help will be appreciated! package.json "@angular/core": "~9.0.5", …
0
votes
1 answer

ng-idle-package-accessor-declared-in-ambient-context error in angular for ng-idle

I have installed ng-idle for browser time out. The functionality is working fine without compilation error but this error is showing ERROR in ../node_modules/@ng-idle/core/lib/eventtargetinterruptsource.d.ts(29,9): error TS1086: An accessor cannot…
0
votes
1 answer

karma ng-idle test fails

i've implemented idle-functionality with ng-idle, which works fine. i'am trying to implement tests with karma/jasmine but i can not use my idle-service: UPDATE2 import { Injectable, OnInit, OnDestroy} from '@angular/core'; import { RoutingService }…
Roma Kap
  • 517
  • 1
  • 8
  • 23
0
votes
1 answer

TypeError: Cannot read property 'watch' undefined in angularjs ng-idle?

I am trying to write the idle timeout issue in the login control but i getting the cannot read property 'watch' of undefined. I am trying to execute the following code in the Tomcat Server 7 and Angular 1.5 $scope.started = false; function…
Prasad
  • 29
  • 1
  • 9
0
votes
1 answer

How to avoid counter multiplication when user reenter the component?

I'm using angular-user-idle npm package to track browser inactive status and display a session out popup on preset timeout . The library works well when you do not redirect from that particular component on timeout. When you redirect to home page or…
Kuntady Yathish
  • 49
  • 2
  • 10
0
votes
1 answer

Angular 6 double subscribe issue

I'd like to issue a refresh token API call when an idle timeout ends in my app... My incorrect code for doing so is: idle.onIdleEnd.subscribe(() => { console.log('idle end reached'); if (this.authStore.isAuthenticated()) { …
RandomUs1r
  • 4,010
  • 1
  • 24
  • 44
0
votes
2 answers

Ng-Idle issue with multiple tabs

If we use same application in multiple tabs, both application uses the same localstorage for storing ngIdle.expiry and one application extends the session of other one. Is there any work around to fix this issue in current version, like configure…
Nijeesh
  • 77
  • 1
  • 9