-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
documentation #2
Comments
Indeed, sorry. I was a little gunshy about putting one together with Angular state being in a beta flux. |
So on that note, what am I doing wrong with idle.setIdle(5);
idle.setTimeout(5);
idle.setInterrupts(DEFAULT_INTERRUPTSOURCES);
idle.onIdleStart.subscribe(response => {
console.log('idling');
console.log(response);
});
idle.onIdleEnd.subscribe(response => {
console.log('idle ended');
console.log(response);
});
idle.onTimeout.subscribe(response => {
console.log('timed out');
}); seems like the correct direction based on your source but none of my subscribes are triggering. If I figure it out before you get back on I'll try to update here. |
I think you need to call idle.watch() to get it started. |
Hi,
It would be great to have a code snippet to see how to use the Idle service.
Thanks,
David
The text was updated successfully, but these errors were encountered: