QR Code for Ionic


Is there a way to read QR code from mobile device, just like Barcode scanner… if its exist… how could I implement it or is there an example ?



please check ng-cordova



how does QRcode works ?



what your question is about

how to read/scan qr code
how to generate qr code


sorry for that :smile:
how to scan QR code sir. :wink:


you have full example
in the link i sent

module.controller('BarcodeCtrl', function($scope, $cordovaBarcodeScanner) {

document.addEventListener("deviceready", function () {
 $scope.scanNow = function(){  --> add scanNow to a button using ng-click="scanNow()" 
  .then(function(barcodeData) {
    // Success! Barcode data is here
  }, function(error) {
    // An error occurred


 }, false);


sorry… I thought it only read barcode… sorry for that :smile:



if you have an example to generate a Qr code, can you show me a code please ? I use this :
https://github.com/phonegap/phonegap-plugin-barcodescanner .

I come to the function(success) but after I don’t know how I can display the QR Code.

Thanks for any help


I use angular qrcode generator :slightly_smiling:


I try and it’s I need to do.
Thank you very much :grin: