bower install angular-qrcode --save,

'bower_components/qrcode-generator/js/qrcode.js',
'bower_components/qrcode-generator/js/qrcode_UTF8.js',
'bower_components/angular-qrcode/angular-qrcode.js',

依赖注入monospaced.qrcode

angular
.module('your-module', [
  'monospaced.qrcode',
]);
<qrcode error-correction-level="M" size="210" data="{{content}}" download></qrcode>

参考链接:https://github.com/monospaced/angular-qrcode

http://monospaced.github.io/angular-qrcode/

参考 示例:http://www.qrcode.com/en/about/version.html

results matching ""

    No results matching ""