Assign v-model
Closed this issue · 2 comments
kyoukhana commented
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
I will try to implement this option tomorrow, thanks!
gerardreches commented
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>