Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fumito-ito/angularjs-barcodescanner
An anglar.js wrapper around window.plugins.barcodeScanner for Phonegap/Cordova plugin
https://github.com/fumito-ito/angularjs-barcodescanner
Last synced: 3 months ago
JSON representation
An anglar.js wrapper around window.plugins.barcodeScanner for Phonegap/Cordova plugin
- Host: GitHub
- URL: https://github.com/fumito-ito/angularjs-barcodescanner
- Owner: fumito-ito
- License: mit
- Created: 2013-12-12T16:27:07.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-07-20T12:53:28.000Z (over 9 years ago)
- Last Synced: 2024-10-11T06:17:31.238Z (3 months ago)
- Language: JavaScript
- Size: 191 KB
- Stars: 26
- Watchers: 3
- Forks: 9
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AngularJS-BarcodeScanner
An anglar.js wrapper around window.plugins.barcodeScanner for Phonegap/Cordova plugin
## Installation
`$ bower install angular-phonegap-barcodeScanner`
## Usage
index.html
main.js
'use strict';
angular.module('sampleApp', ['barcodeScanner'])
.controller('sampleCtrl', function ($scope, barcodeScanner) {
$scope.scan = function () {
barcodeScanner.scan().then( function (result) {
if (result.canceled) {
return;
}
// text from qr code or barcode is contained in result.text
}, function (err) {
alert(err);
});
};
});## ! Important !
You should enable user parmissions to use camera.
Please check your `AndroidManifest.xml` on Android or `config.xml` on iOS.