The Ionic template relies heavily on AngularJS. We covered Angular back in Chapter 18; however, we want to illustrate here how Angular is used inside this Cordova project. First, Figure 25.15 showed how the various script libraries are loaded for the project. Ionic and Angular are loaded by
ionic.bundle.js. Next, the code for the application follows the Angular pattern. It gets loaded by the three
.js files you added to scripts. The following provides a refresher on each of these:
app.js—This is the main code file for your application. It defines the Angular module (as
angular.module()); Ionic has called ...