Ngx-qrcode2 how to save QR Code image to photo library

this doesn’t work.
Any help would be much appreciated!

To answer my own question. Set qrc-element-type to ‘img’. Performance wise, it’s not the best option I guess. But I don’t know how to make it work with canvas :-(. Then, set “qrc-class”.

<ngx-qrcode qrc-class=“qr” id=“QR_Canvas” qrc-element-type=“img” [qrc-value]=“createdCode”

And get the img like this:
let x = document.getElementsByClassName(‘qr’);
let y = x[0].children[0].getAttribute(‘src’);

Any big issue with this approach?