blox-qrcode
v1.0.1
Published
Generates a qr code from a given string
Downloads
19
Readme
<blox-qrcode>
Generates a qr code from a given string
Install the Polymer-CLI
First, make sure you have the Polymer CLI and npm (packaged with Node.js) installed. Run npm install
to install your element's dependencies, then run polymer serve
to serve your element locally.
Install blox-qrcode
$ npm install blox-qrcode
Viewing Your Element
$ polymer serve
Running Tests
$ polymer test
Import
$ import 'blox-qrcode';
<blox-qrcode
data="make me into a qr code"
src="{{src}}"
error="{{error}}">
</blox-qrcode>
Javascript Use
<blox-qrcode id="bloxQrcode"></blox-qrcode>
<script>
this.$.bloxQrcode.make('make me into a qr code')
.then((src) => {
// Do Something
})
.catch((err) => {
// Do Something
})
</script>