Open ashwinirajput opened 7 years ago
Just for clarification, are you saying your ngIdle does not fire if you are on a different page than the page that contains your logic?
I am also facing this issue .. when navigating to other page it is not calling the interrupts for that even though i have setting DEFAULT_INTERRUPTSOURCES again but it is not working. Please comment @HackedByChinese @adamjohnston151 @gitter-badger @HackedByChinese
@vd-nagarro it's really hard to comment on this issue without minimal code to reproduce.
One issue that occurs regularly is that people add the idle code to a specific view, when it needs to happen globally for the application. In other words, they put it in a view or component, and when the user navigates away from the view or component, the idle detection goes away.
@HackedByChinese - Is there any way to let the idle detection remains the same across the whole application as i am using this in our app component which i think make it available through the application and the idle detection interrupts should work properly there too. .. i have use this inside the app.component on its ngOnInit() .. Is i am doing it right?
I'm submitting a ... (check one with "x")
Current behavior
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: 4
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
=