angular-phonegap-connection

Bower Component for using AngularJS with PhoneGap's Connection API.

Usage

  1. bower install angular-phonegap-connection
  2. Made sure the cordova-*.js script is in your .html file.
  3. Include the connection.js script, and this script's dependencies are included in your app.
  4. Add dbaq.phonegap.connection as a module dependency to your app.
  5. Retrieve the network state:
connection.getType(function (networkState) {
	console.log('Connection type: ' + networkState);
});

License

MIT