我有一个 Angular.js 应用程序,它在浏览器控制台中报告错误:
Error: [$rootScope:inprog] $digest already in progress
您能告诉我如何找到触发此错误的代码吗?
更新:
这是我的堆栈跟踪:
Error: [$rootScope:inprog] $digest already in progress
http://errors.angularjs.org/1.2.0-rc.3/$rootScope/inprog?p0=%24digest
at http://localhost:3000/js/libs/angular.js/angular.js:78:12
at beginPhase (http://localhost:3000/js/libs/angular.js/angular.js:10995:15)
at Scope.$apply (http://localhost:3000/js/libs/angular.js/angular.js:10795:11)
at HTMLInputElement.<anonymous> (http://localhost:3000/js/libs/angular.js/angular.js:16514:17)
at http://localhost:3000/js/libs/angular.js/angular.js:2331:10
at Array.forEach (native)
at forEach (http://localhost:3000/js/libs/angular.js/angular.js:213:11)
at HTMLInputElement.eventHandler (http://localhost:3000/js/libs/angular.js/angular.js:2330:5)
at scroll (http://localhost:3000/js/libs/angular.js/angular.js:3479:26)
at http://localhost:3000/js/libs/angular.js/angular-route.js:852:15 angular.js:8296