Vuejs v-model array in multiple input

Posted by Andre Scott | Updated on

You’re thinking too DOM, it’s a hard as hell habit to break. Vue recommends you approach it data first.

It’s kind of hard to tell in your exact situation but I’d probably use a v-for and make an array of finds to push to as I need more.

Here’s how I’d set up my instance:

And here’s how I’d set up my template:

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@] Your question and answer will appear on and help other developers.

Related Questions & Answers