0

We built our website in angularjs. From the last few days, we are getting below error in our website . You can easily reproduce this issue by going to http://www.reviewmatters.com/#!/directReview and then login using fb or twitter.

Error: 10 $digest() iterations reached. Aborting!
Watchers fired in the last 5 iterations: [["fn: function (){var a=d.url(),b=f.$$replace;if(!m||a!=f.absUrl())m++,\nc.$evalAsync(function(){c.$broadcast(\"$locationChangeStart\",f.absUrl(),a).defaultPrevented?f.$$parse(a):
2
  • 1
    I love reading minified javascript Commented Oct 26, 2013 at 6:21
  • please post relevant code in Fiddle/Plunker Commented Oct 26, 2013 at 7:55

2 Answers 2

2

This usually happens when two parts of your model update each other in a cycle. Angular sees that one value has changed so it starts another $digest iteration, which causes another change so another iteration occurs and so on. It's an infinite loop, but Angular catches it and stops after 10 (by default) iterations.

If you post the non-minified controller and the view that cause this we may be able to give a more concrete answer.

Sign up to request clarification or add additional context in comments.

Comments

0

Finally stopped using angular-cookies and wrote our own directory.I wonder if angularjs docs and bugs would ever be fixed.It took almost one week of our time .

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.