<div id="demo">
      <div v-for='n in 3'>
        <input v-model="form.parent_id[n]">
      </div>
      <div v-for='n in 3'>
        {{ form.parent_id[n] }}
      </div>
    </div>
    var data = {
        form: {
          parent_id: []
        }
    }

    var demo = new Vue({
        el: '#demo',
        data: data
    })

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://cdnjs.cloudflare.com/ajax/libs/vue/2.6.11/vue.min.js