Due to a know issue with Electron (look for "jQuery/RequireJS/Meteor/AngularJS" here http://electron.atom.io/docs/faq/) the recommendation on Electron FAQ is to rename window.require to something else. However, because of this, angular-electron module won't load throwing error:
Error: [$injector:modulerr] Failed to instantiate module angular-electron due to:
TypeError: electronRequire is not a function
Due to a know issue with Electron (look for "jQuery/RequireJS/Meteor/AngularJS" here http://electron.atom.io/docs/faq/) the recommendation on Electron FAQ is to rename window.require to something else. However, because of this, angular-electron module won't load throwing error:
If you could make an assumption that the require was renamed to nodeRequire and changed this line: https://github.com/ozsay/angular-electron/blob/master/angular-electron.js#L109 to
things should work out fine.