Wrappers for ngCordova services with Ionic fallbacks.
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 :)
- Install with bower (this will download all dependencies):
bower install ng-cordova-ionic -S
-Sto add as dependency to bower.json
- Add to index.html
<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>
- Add as dependency in your angular module:
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
You can check some of the wrappers usage at Demo ngCordovaIonic.