获取$ scope。$ chrome中的digest错误

时间:2014-05-23 11:41:17

标签: angularjs google-chrome angularjs-scope

我在Chrome中遇到了一个非常奇怪的问题,

在我的应用程序中,我使用

在其他窗口中打印收据

Window.open(); Window.print();

但是,如果用户忽略打开的窗口并再次单击打印按钮,则会出现以下错误。

第9行包含来自my.js的打印功能

1. Error: [$rootScope:inprog] $apply already in progress 2. http://errors.angularjs.org/1.2.16/$rootScope/inprog?p0=%24apply 3. at http://localhost:62344/external/angularJS/1.2.16/angular.js:78:12 4. at beginPhase (http://localhost:62344/external/angularJS/1.2.16/angular.js:12720:15) 5. at Scope.$apply (http://localhost:62344/external/angularJS/1.2.16/angular.js:12509:11) 6. at HTMLInputElement.<anonymous> (http://localhost:62344/external/angularJS/1.2.16/angular.js:18626:21) 7. at HTMLInputElement.jQuery.event.dispatch (http://localhost:62344/Scripts/jquery-1.8.2.js:3063:9) 8. at HTMLInputElement.elemData.handle.eventHandle (http://localhost:62344/Scripts/jquery-1.8.2.js:2681:46) 9. at Scope.$scope.print (http://localhost:62344/Scripts/app/my.js:5044:34) 10. at http://localhost:62344/external/angularJS/1.2.16/angular.js:10567:21 11. at http://localhost:62344/external/angularJS/1.2.16/angular.js:18627:17 12. at Scope.$eval (http://localhost:62344/external/angularJS/1.2.16/angular.js:12412:28)

在其他浏览器上工作正常。

任何输入??

-Thanks, 约杰什