Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

How to generate barcode with ionic+cordova?

$
0
0

I made a basic directive with JsBarcode

  .directive('barcode', function () {
      "use strict";
      return {
          restrict: 'EA',
          scope: {
              data: '='
          },
          template: '<canvas id=barcode></canvas>',
          link: function ($scope, element) {
              var canvas = element.find('canvas');
              new JsBarcode(canvas[0], $scope.data);
          }
      };
  })

Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>