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
Post a Comment