1.0.1 • Published 7 years ago
blox-qrcode v1.0.1
\<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-qrcodeViewing Your Element
$ polymer serveRunning Tests
$ polymer testImport
$ 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>