Open anrepppp opened 6 years ago
I too badly looking for this solution ? did u find anything with this regard?
This is a hacky way to do it but you can read the expiry date from local storage:
setInterval(() => { this.timeoutTime = localStorage.getItem('ng2Idle.main.expiry'); }, 1000);
<p>Expiry: {{timeoutTime | date: 'longTime'}}</p>
I'm submitting a ... (check one with "x")
Current behavior
I had a requirement to know when the idle timeout was half way there before complete?
Expected behavior
Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
@ng-idle version: 2.x
Angular version: 2.x
Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
Language: [all | TypeScript X.X | ES6/7 | ES5]
Node:
node --version
=