angular-qr-scanner

WebJar for angular-qr-scanner

License

License

MIT
Categories

Categories

Angular User Interface Web Frameworks
GroupId

GroupId

org.webjars.bower
ArtifactId

ArtifactId

angular-qr-scanner
Last Version

Last Version

0.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

angular-qr-scanner
WebJar for angular-qr-scanner
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/sembrestels/angular-qr-scanner

Download angular-qr-scanner

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bower/angular-qr-scanner/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>angular-qr-scanner</artifactId>
    <version>0.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/angular-qr-scanner/
implementation 'org.webjars.bower:angular-qr-scanner:0.1.0'
// https://jarcasting.com/artifacts/org.webjars.bower/angular-qr-scanner/
implementation ("org.webjars.bower:angular-qr-scanner:0.1.0")
'org.webjars.bower:angular-qr-scanner:jar:0.1.0'
<dependency org="org.webjars.bower" name="angular-qr-scanner" rev="0.1.0">
  <artifact name="angular-qr-scanner" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='angular-qr-scanner', version='0.1.0')
)
libraryDependencies += "org.webjars.bower" % "angular-qr-scanner" % "0.1.0"
[org.webjars.bower/angular-qr-scanner "0.1.0"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.bower : angular jar [1.2.0,)

Project Modules

There are no modules declared in this project.

angular-qr-scanner

Angular directive for a QR Scanner. It is the angular version of html5-qrcode and uses jsqrcode.

Check out the live demo.

Usage

<qr-scanner ng-success="onSuccess(data)" width="400" height="300"></qr>

Install

$ bower install angular-qr-scanner

Example

<html ng-app="App">
<body ng-controller="qrCrtl">
<qr-scanner width="400" height="300" ng-success="onSuccess(data)" ng-error="onError(error)" />

<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular.js"></script>
<script src="bower_components/angular-qr-scanner/qr-scanner.js"></script>
<script src="bower_components/angular-qr-scanner/src/jsqrcode-combined.min.js"></script>
<script>

var App = angular.module('App', ['qrScanner']);

App.controller('qrCrtl', ['$scope', function($scope) {
    $scope.onSuccess = function(data) {
        console.log(data);
    };
    $scope.onError = function(error) {
        console.log(error);
    };
    $scope.onVideoError = function(error) {
        console.log(error);
    };
}]);

</script>
</body>
</html>

License

The MIT License

Copyright (c) 2013-2015 Sembrestels

Versions

Version
0.1.0