An architecture for constructing a PhoneGap app with AngularJS and ngCordova.