I am facing very strange issue in Chrome,
In my application i am printing receipt in other window using
Window.open(); Window.print();
However if user ignore opened window and click on print button again then i am getting following error.
line no 9 contains print function from 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)
On other browsers its working fine.
Any inputs ??
-Thanks, Yogesh