Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ihadeed/ionic1-ionic-native-example
Showing usage of Ionic-native library inside an Ionic 1 / Angular 1 app
https://github.com/ihadeed/ionic1-ionic-native-example
Last synced: about 1 month ago
JSON representation
Showing usage of Ionic-native library inside an Ionic 1 / Angular 1 app
- Host: GitHub
- URL: https://github.com/ihadeed/ionic1-ionic-native-example
- Owner: ihadeed
- Created: 2016-05-22T21:06:57.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-06-09T16:38:21.000Z (over 8 years ago)
- Last Synced: 2024-10-26T09:08:22.357Z (3 months ago)
- Language: JavaScript
- Size: 1.77 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ionic1-ionic-native-example
Showing usage of Ionic-native library inside an Ionic 1 / Angular 1 app# Usage
- Copy `ionic.native.min.js` to your www directory (you can copy the non-minified version if you wish)
- Add that bundle file to your index.html (See https://github.com/ihadeed/ionic1-ionic-native-example/blob/master/www/index.html#L21-L22)
- ~~Use the plugins and their functions through the global variable `IonicNative` (See https://github.com/ihadeed/ionic1-ionic-native-example/blob/master/www/js/app.js#L28-L34)~~
- Import the module `ionic.native` in your main `angular.module`
- Inject the plugin you need inside a controller/service by adding `$cordova` as a prefix. For example, the plugin `Statusbar` becomes `$cordovaStatusbar`