Skip to content

jrdn91/bc-qr-reader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bc-qr-reader

QR Code reader directive for AngularJS.

It uses webcam-directive to access the camera and Lazarsoft QR reader to process the QR code.

Install

bower install --save blockchain/bc-qr-reader

Demo

See it live in this Plunker.

Your browser won't permit using the camera when looking at a local file, so the following won't work: clone this repository, run bower install and open demo/index.html in a browser. Also note that HTTPS is required, so this won't work.

Usage

Include dist/bc-qr-reader.js as well as bower_components/webcam-directive/app/scripts/webcam.js. Add the webcam and bcQrReader module to your application.

<bc-qr-reader
  active="cameraRequested"  
  on-result="processURLfromQR"
  on-error="onError"
  camera-status="cameraIsOn"
></bc-qr-reader>

Development

npm install
cd src && git clone https://github.com/blockchain/jsqrcode

Update bower package

npm install
grunt dist

About

Angular QR Reader Directive

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CoffeeScript 100.0%