Comments (9)
What version of the module and AngularJS are you using? See #18
from ng-idle.
Version 0.3.5 with 1.3.14. Sorry for the duplicate ticket. I will chance the version to 0.3.4. I think that'll work in my case
from ng-idle.
As far as i can see, the problem still persists with 0.3.4 and angular 1.3.14.
from ng-idle.
Hi. I have the same problem. Version of ng-idle: 0.3.5, angular - 1.3.14
from ng-idle.
I think it's because you are using $interval service, which by default will trigger $digest cycle. Demo
But we can change behavior of $interval if pass 4th parameter "invokeApply" https://code.angularjs.org/1.3.14/docs/api/ngMock/service/$interval
from ng-idle.
I think the conclusion is that 0.3.4 is the solution if you're stuck on AngularJS 1.2.
The issue is resolved in 1.0.0, but it's not officially released yet. I've been trying to wrap that up for months now but personal matters have interceded. As an interim, you can try using angular-idle.js/.min.js right from the develop branch.
from ng-idle.
Updated ng-idle to 1.0.4. The configuration now looks like this (migrating from 0.3.5)
app
.config(function(IdleProvider) {
IdleProvider.idle(Math.ceil(settings.idleTimeout/1000));
IdleProvider.timeout(false);
})
.run(function($rootScope, Idle, $location, locationService) {
Idle.watch();
$rootScope.$on('IdleStart', function() {
console.log("IdleStart");
if($location.path() != '/') {
locationService.gotoHome();
}
});
});
The digest cycle explained in the first post is still triggerd. Am im using it wrong? Btw, Im still using angular 1.2.21
from ng-idle.
Btw, it works with angular 1.3.15
from ng-idle.
Please see this comment from #18: #18 (comment)
from ng-idle.
Related Issues (20)
- [Question] Keepalive event in multiple tabs
- Issue in multiple tabs HOT 2
- Angular 5 - generic component child used in several main component not working
- Not want to reset timer in case of user intervention in app HOT 1
- Any plans to upgrade to Angular 6 HOT 1
- AngularJs - Unknown provider : IdleProvider HOT 1
- ng-Idle/core onIdleStart and onTimout function executing multiple times
- Having issues with ng-idle/core onIdleEnd & Mat-Dialog HOT 1
- keepalive onPingResponse subscribe response doesnt work right
- set url string parameter of http() dynamically
- Using JS Alert does not timeout until OK is Clicked HOT 1
- Key Management: Hardcoded Encryption Key HOT 1
- Select box (with multiple selections) not working properly
- unable to mock inactivity time with cypress clock/tick()
- How to use localstorageservice to handle in multiple tabs in the same browser HOT 1
- Incompatible with Angular 10 HOT 1
- Don't work with IFRAME HOT 3
- Keepalive interval not respected
- Implement a privacy preserving mode functionality avoiding usage of the persistent browser localStorage
- ng-idle not working for iOS in Ionic cordova
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ng-idle.