Vuejs: v-model array in multiple input
<p>I have an input text field with a v-model attached, and every time someone hits the "Add" button, another input text get added to the DOM with the same v-model attached. I thought I'd then get an array of the v-model values, but it only gets the value of the first v-model input:</p>

<pre><code>&lt;div id="app"&gt;
  &lt;div id="references"&gt;
    &lt;input v-model="references" type="text"&gt;
  &lt;/div&gt;
  &lt;button @click="addReference"&gt;Add&lt;/button&gt;
&lt;/div&gt;
</code></pre>

<p>The html I append to the dom is triggered by the addReference method:</p>

<pre><code>addReference: function(e) {
  e.preventDefault();
  console.log(this.references);
  var inputEl = '&lt;input v-model="references" type="text"&gt;';
  $('#references').append(inputEl);
}
</code></pre>

<p>Is this something Vuejs can't do? Is there a different approach of gathering values from dynamic dom elements with Vuejs?</p>

<p><div class="snippet" data-lang="js" data-hide="true" data-console="true" data-babel="false">
<div class="snippet-code snippet-currently-hidden">
<pre class="snippet-code-js lang-js prettyprint-override"><code>new Vue({
  el: "#app",
  data: {
    references: "text"
  },
  methods: {
    addReference: function(e) {
      e.preventDefault();
      console.log(this.references);
      var inputEl = '&lt;input v-model="references" type="text"&gt;';
      $('#references').append(inputEl);
    }
  }
})</code></pre>
<pre class="snippet-code-css lang-css prettyprint-override"><code>input {
  display: block;
  margin: 1px;
}</code></pre>
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.16/vue.min.js"&gt;&lt;/script&gt;
&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
&lt;div id="app"&gt;
  &lt;div id="references"&gt;
    &lt;input v-model="references" type="text"&gt;
  &lt;/div&gt;
  &lt;button @click="addReference"&gt;Add&lt;/button&gt;
&lt;/div&gt;</code></pre>
</div>
</div>
</p>