This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Infinite digest loop occurring on first run of app when running grunt server #10423
Closed
Description
I tried to update my app to use 1.3.6 but when I do for some reason an infinite digest loop happens when I run grunt server and the app opens in the browser. It appears to redirect in the url bar over and over before it shows anything until finally it shows the page. Looking at the console I can see there are several errors for this.
Error: [$rootScope:infdig] 10 $digest() iterations reached. Aborting!
Watchers fired in the last 5 iterations: []
http://errors.angularjs.org/1.3.6/$rootScope/infdig?p0=10&p1=%5B%5D
at http://localhost:9003/bower_components/angular/angular.js:63:12
at Scope.$digest (http://localhost:9003/bower_components/angular/angular.js:14233:19)
at Scope.$apply (http://localhost:9003/bower_components/angular/angular.js:14457:24)
at bootstrapApply (http://localhost:9003/bower_components/angular/angular.js:1441:15)
at Object.invoke (http://localhost:9003/bower_components/angular/angular.js:4169:17)
at doBootstrap (http://localhost:9003/bower_components/angular/angular.js:1439:14)
at bootstrap (http://localhost:9003/bower_components/angular/angular.js:1459:12)
at angularInit (http://localhost:9003/bower_components/angular/angular.js:1353:5)
at HTMLDocument.<anonymous> (http://localhost:9003/bower_components/angular/angular.js:25995:5)
at fire (http://localhost:9003/bower_components/jquery/dist/jquery.js:3073:30)
When I refresh the page though, it doesn't happen. Only on the first run of the app.
The last version of angular that it doesn't do this in is 1.3.3.