ngCordovaIonic

Wrappers for ngCordova services with Ionic fallbacks.

Download as .zip Download as .tar.gz View on GitHub

Inspiration

ngCordova plugin wrappers are great if you only test your app on a device.

However, for devs like me who spend most of the time testing their Ionic apps on the browser, it's necessary to have fallbacks for some plugins or at least detect when they are not available and act accordingly.

That's the intent of this project :)

Installation

bower install ng-cordova-ionic -S

-S to add as dependency to bower.json

<script src="bower_components/lodash/dist/lodash.compat.js"></script>
<script src="bower_components/ngCordova/dist/ng-cordova.js"></script>
<script src="bower_components/ng-cordova-ionic/dist/ng-cordova-ionic.js"></script>
angular.module('myApp', ['ngCordovaIonic']);

If you are working with diegonetto's generator-ionic there is no need to add the scripts manually.

You should be using it anyway, trust me :D

Demo

You can check some of the wrappers usage at Demo ngCordovaIonic.