Based off of this example: http://devgirl.org/2013/06/10/quick-start-guide-phonegap-and-angularjs/