ng-idle

NgIdle -Angular- How to stop the countdown value only when we click on dialog

安稳与你 提交于 2020-05-29 07:58:10
问题 I have implemented a session timeout module in my angular app which monitors idle time and opens the session time out dialog and shows the countdown value on the dialog. The problem is count down value is stopping when ever i moved my mouse on that screen or atleast on touching that screen but i want to stop the countdown value on the dialog only when i click anything on the dialog not the screen . I thought this can be do this if we give the custom interrupts as shown in the below link here

ngIdle - How to clear and reset interrupts in Angular

℡╲_俬逩灬. 提交于 2019-12-31 05:37:25
问题 I have integrated ngidle library in my app and i am showing dialog with timeout value . I would like to stop the timer value only on interactions on the dialog . not on the screen so on nginit i have set the default interrrupts and on timeout warning i am clearing the interrupts but i am not able to reset the interrupts . The sample code is below , Please check and let me know if anything goes wrong . ngOnInit() { // sets the default interrupts, in this case, things like clicks, scrolls,

Having issues with ng-idle/core onIdleEnd & Mat-Dialog

谁说胖子不能爱 提交于 2019-12-22 12:19:08
问题 There is an issue I have discovered with Ng-Idle, Material 6 nad Angular 6 "@ng-idle/core": "^6.0.0-beta.3" "@ng-idle/keepalive": "^6.0.0-beta.3" "@angular/core": "^6.1.9" "@angular/cdk": "^6.4.7" "@angular/material": "^6.4.7" The scenario when ever a user has gone idle, a dialog (popup) displays a countdown how long until the user is logged out of the system. If the user return prior to being logged out with mouse activity, the countdown will halt and the dialog will close/disappear. Issue

Why isn't this ng-idle implementation connecting modal and styling?

青春壹個敷衍的年華 提交于 2019-12-12 03:55:26
问题 I am trying to get ng-idle to hook up to css and modal the way it looks in this working example at this link. I have interpreted the code at the link to mean that I should type the code below to implement it, but the code below does not hook the controller or the styling up to the view. What specific changes need to be made to the code below to successfully implement ng-idle the way it looks in the demo link above, with modal warning and with styling for the buttons, etc.? The situation can

Angular 2 - Logout using ng2-idle

馋奶兔 提交于 2019-12-06 09:13:54
问题 My problem is that when click on the logout button ng2-idle continues working. And to try to solve this problem I set again the setIdle and setTimeout functions for 1 second. However, when the user is transferred to the login screen, the app takes 1 second to give the timeout. I like to know if have any way of forcing the timeout or end ng2-idle after click the logout button that call logout() function. import {Component} from '@angular/core'; import {Router} from "@angular/router"; import

Having issues with ng-idle/core onIdleEnd & Mat-Dialog

此生再无相见时 提交于 2019-12-06 07:35:10
There is an issue I have discovered with Ng-Idle, Material 6 nad Angular 6 "@ng-idle/core": "^6.0.0-beta.3" "@ng-idle/keepalive": "^6.0.0-beta.3" "@angular/core": "^6.1.9" "@angular/cdk": "^6.4.7" "@angular/material": "^6.4.7" The scenario when ever a user has gone idle, a dialog (popup) displays a countdown how long until the user is logged out of the system. If the user return prior to being logged out with mouse activity, the countdown will halt and the dialog will close/disappear. Issue However, in Angular 5, this feature was working fine until I upgraded to Angular 6. When ever the user

Angular 6 ng-idle

独自空忆成欢 提交于 2019-12-04 05:19:50
问题 I have an Angular Project which is working well and I'm implementing NG-IDLE and KeepAlive in order to keep the session fresh and to log a user out before the API session expires. My issue is that the ng-idle is also operating on the login page, which is obviously not required, as when it does time out, it will take the person to the login page. So I have the ng-idle and KeepAlive up and running in my app.component.ts but since I'm using lazy loading, I also have an authentication.module.ts

ngIdle - How to clear and reset interrupts in Angular

这一生的挚爱 提交于 2019-12-02 11:34:24
I have integrated ngidle library in my app and i am showing dialog with timeout value . I would like to stop the timer value only on interactions on the dialog . not on the screen so on nginit i have set the default interrrupts and on timeout warning i am clearing the interrupts but i am not able to reset the interrupts . The sample code is below , Please check and let me know if anything goes wrong . ngOnInit() { // sets the default interrupts, in this case, things like clicks, scrolls, touches to the document this.idle.setInterrupts(DEFAULT_INTERRUPTSOURCES); } this.idle.onTimeoutWarning

Angular 6 ng-idle

人盡茶涼 提交于 2019-12-02 05:03:05
I have an Angular Project which is working well and I'm implementing NG-IDLE and KeepAlive in order to keep the session fresh and to log a user out before the API session expires. My issue is that the ng-idle is also operating on the login page, which is obviously not required, as when it does time out, it will take the person to the login page. So I have the ng-idle and KeepAlive up and running in my app.component.ts but since I'm using lazy loading, I also have an authentication.module.ts and a login.component.ts. The code in my root app.component.ts is as follows: import { Component } from

Auto logout with Angularjs based on idle user

。_饼干妹妹 提交于 2019-11-27 06:03:42
Is it possible to determine if a user is inactive and automatically log them out after say 10 minutes of inactivity using angularjs? I was trying to avoid using jQuery, but I cannot find any tutorials or articles on how to do this in angularjs. Any help would be appreciated. I wrote a module called Ng-Idle that may be useful to you in this situation. Here is the page which contains instructions and a demo. Basically, it has a service that starts a timer for your idle duration that can be disrupted by user activity (events, such as clicking, scrolling, typing). You can also manually interrupt