ngx-qrcode
ngx-qrcode copied to clipboard
How to get data url in typescript when Qrcode created ?
Can we have a function to call to get current generated QR-code data URL?
by "current generated qrcode" do you mean the bitmap? If so, please take a look to #8
Any luck with this?
Any chance of a proper property bind to the src url that is generated from this? Being able to do something like this "#qrCode" rc would be nice. Need to use this qrcode in jsreports documents
@Warriormuffin and @tearforfear007
Actually, this library creates an img
tag from a data-url. I believe you should be able to read its source and use the generated QRCode in other places.
Also, since, this library is a wrapper over the node-qrcode
library, you may be able to get the desired functionality.
https://www.npmjs.com/package/qrcode#todataurltext-options-cberror-url