Skip to content

andrei-zhidkov/ember-simple-qrcode

Repository files navigation

ember-simple-qrcode

A simple QR code component & npm's qrcode package shim.

This addon is a thin wrapper around node-qrcode library.

Installation

Run ember install ember-simple-qrcode.

Usage

Component

{{qr-code content='Hello!'}}
{{qr-code content=false onError=myAwesomeErrorHandler}} {{!-- onError hook will be called in case an error occurs --}}
{{qr-code}} {{!-- no-op --}}

ES module

In case you want to use the library directly, just import it:

import QRCode from 'qrcode';

License

This project is licensed under the MIT License.