[Vuejs]-Vue JS custom component v-model

0👍

If I understand you correctly, you can simply use v-model on the array element itself:

<key-value-input v-for="n in inputs" v-model="provider.params[n-1]"></key-value-input>

Here’s the JSFiddle: https://jsfiddle.net/2be4maxm/

Leave a comment