You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all,
I want to create the multiple instances of ng2-idle in my application, one is for idle-logout after 10 mins and another is for auto saving the inputs if the application idle for 10 seconds. Right now I had created multiple instances(using setIdleName) for this case, but the timeout is happening on the last idle time I had set. Please help me to solve this issue
The text was updated successfully, but these errors were encountered:
constructor(private idle: Idle, private idle2: Idle){
idle.setIdle(1000); // sets an idle timeout of "environment.idle_time" seconds
idle.setTimeout(5); // sets a timeout period of "environment.timeout_time" seconds
idle.setInterrupts(DEFAULT_INTERRUPTSOURCES); // sets the default interrupts, in this case, things like clicks, scrolls, touches to the document
idle.setIdleName('main');
idle2.setIdle(15);
idle2.setTimeout(5);
idle2.setIdleName('notifications');
console.log(this.idle.getIdle()); // Output 15
console.log(this.idle2.getIdle()); // Output 15
}
Hi all,
I want to create the multiple instances of ng2-idle in my application, one is for idle-logout after 10 mins and another is for auto saving the inputs if the application idle for 10 seconds. Right now I had created multiple instances(using setIdleName) for this case, but the timeout is happening on the last idle time I had set. Please help me to solve this issue
The text was updated successfully, but these errors were encountered: