Licence
MIT
Version
1.0.1
Deps
1
Size
37 kB
Vulns
0
Weekly
0
<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>