angularjs - what is the most efficient way to debug `Error: [$rootScope:infdig] 10 $digest() iterations reached. Aborting!` -


in application error: [$rootscope:infdig] 10 $digest() iterations reached. aborting!. caused using event.preventdefault() inside $statechangestart event handler:

$rootscope.$on('$statechangestart', function (event, tostate, toparams, fromstate, fromparams) {     event.preventdefault(); 

when that, ui-router tries change state , $statechangestart fired multiple times. problem. think i'd need debug digest understand returns same value. i'm wondering how that? i'm thinking detaching modules have little watchers possible.


Comments

Popular posts from this blog

searchKeyword not working in AngularJS filter -

sequelize.js - Sequelize: sort by enum cases -

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -