We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have the issue that I woul like to download the svg fiel but I cant get the code to work
downloadQRCodeAsSVG(event: Event): void { event.preventDefault(); const qrData = this.qrCodeForm.get('qrCodeResult.customUrl')?.value || '';
if (!qrData) { return; } QRCode.toString(qrData, { type: 'svg', errorCorrectionLevel: 'medium' }, (err: Error | null, svgString: string) => { if (err) { console.error('Error generating QR code:', err); return; } const blob = new Blob([svgString], { type: 'image/svg+xml' }); const url = URL.createObjectURL(blob); const link = document.createElement('a'); link.href = url; link.download = 'qr-code.svg'; link.click(); URL.revokeObjectURL(url); });
}
I get the error
Expected 0 arguments, but got 3.ts(2554) (property) type: string
But to my understanding the arguments are needed or not?
Thank you for you support in advance! Mike
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have the issue that I woul like to download the svg fiel but I cant get the code to work
downloadQRCodeAsSVG(event: Event): void {
event.preventDefault();
const qrData = this.qrCodeForm.get('qrCodeResult.customUrl')?.value || '';
}
I get the error
Expected 0 arguments, but got 3.ts(2554)
(property) type: string
But to my understanding the arguments are needed or not?
Thank you for you support in advance!
Mike
The text was updated successfully, but these errors were encountered: