Saving an image (retrieved from external library) locally - Angular?
问题 I'm really really new to Angular and all. So I've gotten a QR code image from a library (angularx-qrcode) generator. Here's the code to get the image: <qrcode [qrdata]="'Your QR code data string'" [size]="256" [level]="'M'"></qrcode> Now I wanna have a button that allows the user to save the above image locally. How can I achieve this? Also is the syntax different for different Angular versions (e.g. 2 vs 7)? Thank you so much!! any help would be appreciated:) 回答1: Now I wanna have a button