I'm currently developing my first Cordova application using AngularJS, and I find myself a bit unsure about how to properly organize the initial JavaScript for a Cordova project.
At this point, I have made some modifications to the default index.js file included with Cordova in order to incorporate certain events triggered when the device goes online or offline. This customization involves creating an object (app) and defining functions such as initialize, bindEvents, and onDeviceready.
My main question is: where should I declare the AngularJS application? Should it be placed after the app.initialize() function call at the end of the document? Or is it possible to completely revamp the original Cordova structure of the JS file and implement a different approach for handling onDeviceReady?
Your insights are greatly appreciated!