gerardreches / vue-qrcode-component

Create QR codes with a simple Vue component
https://gerardreches.github.io/vue-qrcode-component/
MIT License
124 stars 21 forks source link

Assign v-model #1

Closed kyoukhana closed 7 years ago

kyoukhana commented 7 years ago

I was wondering how do I dynamically assign a value to the component. v-model so that I bind a dynamic value to it.

gerardreches commented 7 years ago

I will try to implement this option tomorrow, thanks!

gerardreches commented 7 years ago

@kyoukhana

Added in v2.1.0. I also added extra documentation.

Now you can simply use v-bind: on the text prop and pass a variable attached to a v-model.

<input type="text" v-model="message">
<qr-code :text="message"></qr-code>