gerardreches/vue-qrcode-component

Assign v-model

Closed this issue · 2 comments

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

I will try to implement this option tomorrow, thanks!

@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>