ngx-qrcode icon indicating copy to clipboard operation
ngx-qrcode copied to clipboard

How to get data url in typescript when Qrcode created ?

Open tearforfear007 opened this issue 7 years ago • 4 comments

Can we have a function to call to get current generated QR-code data URL?

tearforfear007 avatar Feb 08 '18 05:02 tearforfear007

by "current generated qrcode" do you mean the bitmap? If so, please take a look to #8

mautematico avatar Feb 09 '18 07:02 mautematico

Any luck with this?

MrGallen avatar Feb 17 '18 10:02 MrGallen

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 avatar Mar 17 '18 04:03 Warriormuffin

@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

nikkhielseath avatar Nov 28 '21 06:11 nikkhielseath