jgrenon / angular-desktop-app

This is a simple application skeleton to create desktop application using AngularJS. This application is using node-webkit as our desktop host, bower to install client-side libraries as well as normal npm modules as supported by node-webkit.
MIT License
237 stars 57 forks source link

Error: [$rootScope:infdig] 10 $digest() iterations reached (after clicking on Desktop App link) #16

Open DinisCruz opened 9 years ago

DinisCruz commented 9 years ago

when I execute the main app using ./node-webkit ../../../../../../src (note that the path is different than the one in grunt), the first page loads ok

image

but when I click on the 'Desktop App' button, I get this error:

image

Here is the full log

[4169:1129/022447:INFO:CONSOLE(20)] ""Admin role was successfully created"", source: file:///Users/diniscruz/_Dev_Tests/node-webkit/angular-desktop-app/src/js/controllers/app.js (20)
[4169:1129/022448:INFO:CONSOLE(10103)] ""Error: [$rootScope:infdig] 10 $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: [[\"fn: $locationWatch; newVal: 8; oldVal: 7\"],[\"fn: $locationWatch; newVal: 9; oldVal: 8\"],[\"fn: $locationWatch; newVal: 10; oldVal: 9\"],[\"fn: $locationWatch; newVal: 11; oldVal: 10\"],[\"fn: $locationWatch; newVal: 12; oldVal: 11\"]]\nhttp://errors.angularjs.org/1.2.27/$rootScope/infdig?p0=10&p1=%5B%5B%22fn%3A%20%24locationWatch%3B%20newVal%3A%208%3B%20oldVal%3A%207%22%5D%2C%5B%22fn%3A%20%24locationWatch%3B%20newVal%3A%209%3B%20oldVal%3A%208%22%5D%2C%5B%22fn%3A%20%24locationWatch%3B%20newVal%3A%2010%3B%20oldVal%3A%209%22%5D%2C%5B%22fn%3A%20%24locationWatch%3B%20newVal%3A%2011%3B%20oldVal%3A%2010%22%5D%2C%5B%22fn%3A%20%24locationWatch%3B%20newVal%3A%2012%3B%20oldVal%3A%2011%22%5D%5D\n    at eval (file:///Users/diniscruz/_Dev_Tests/node-webkit/angular-desktop-app/src/lib/angular/angular.js:78:12)\n    at Scope.$digest (file:///Users/diniscruz/_Dev_Tests/node-webkit/angular-desktop-app/src/lib/angular/angular.js:12666:19)\n    at Scope.$apply (file:///Users/diniscruz/_Dev_Tests/node-webkit/angular-desktop-app/src/lib/angular/angular.js:12892:24)\n    at HTMLDocument.eval (file:///Users/diniscruz/_Dev_Tests/node-webkit/angular-desktop-app/src/lib/angular/angular.js:9890:24)\n    at HTMLDocument.jQuery.event.dispatch (file:///Users/diniscruz/_Dev_Tests/node-webkit/angular-desktop-app/src/lib/jquery/dist/jquery.js:4409:9)\n    at HTMLDocument.elemData.handle (file:///Users/diniscruz/_Dev_Tests/node-webkit/angular-desktop-app/src/lib/jquery/dist/jquery.js:4095:28)"", source: file:///Users/diniscruz/_Dev_Tests/node-webkit/angular-desktop-app/src/lib/angular/angular.js (10103)
[4169:1129/022448:INFO:CONSOLE(12895)] "Uncaught Error: [$rootScope:infdig] 10 $digest() iterations reached. Aborting!
Watchers fired in the last 5 iterations: [["fn: $locationWatch; newVal: 8; oldVal: 7"],["fn: $locationWatch; newVal: 9; oldVal: 8"],["fn: $locationWatch; newVal: 10; oldVal: 9"],["fn: $locationWatch; newVal: 11; oldVal: 10"],["fn: $locationWatch; newVal: 12; oldVal: 11"]]
http://errors.angularjs.org/1.2.27/$rootScope/infdig?p0=10&p1=%5B%5B%22fn%3A%20%24locationWatch%3B%20newVal%3A%208%3B%20oldVal%3A%207%22%5D%2C%5B%22fn%3A%20%24locationWatch%3B%20newVal%3A%209%3B%20oldVal%3A%208%22%5D%2C%5B%22fn%3A%20%24locationWatch%3B%20newVal%3A%2010%3B%20oldVal%3A%209%22%5D%2C%5B%22fn%3A%20%24locationWatch%3B%20newVal%3A%2011%3B%20oldVal%3A%2010%22%5D%2C%5B%22fn%3A%20%24locationWatch%3B%20newVal%3A%2012%3B%20oldVal%3A%2011%22%5D%5D", source: file:///Users/diniscruz/_Dev_Tests/node-webkit/angular-desktop-app/src/lib/angular/angular.js (12895)