Skip to content

aaccurso/ng-cordova-ionic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ng-cordova-ionic

Wrappers for ngCordova services with Ionic fallbacks.

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

  • Install with bower (this will download all dependencies):

bower install ng-cordova-ionic -S

-S to 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:
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

Usage

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

About

🎁 – Wrappers for ngCordova services with Ionic fallbacks.

Resources

License

Stars

Watchers

Forks

Packages

No packages published