QrcodeController

QR Code Generator Controller

Generates QR codes dynamically using the qrcode library. Generates the QR code when the modal/container is shown to avoid unnecessary generation.

Usage:

Or with a modal:

Constructor

new QrcodeController()

Methods

(async) copyToClipboard()

Copy QR code to clipboard as image

(async) download()

Download the QR code as PNG

generate()

Generate the QR code Returns a Promise that resolves when generation is complete

regenerate()

Regenerate the QR code (useful if URL changes)