Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.