title: How to set default value on dynamic input fields in Vue.js?
body: <p>I have created a dynamic input fields but the problem is that I don't know how to set default values on that dynamic fields for example number "1". Can anyone help me with that? Thanks</p>
  
  <p>Here is my example</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>new Vue({
    el: '#app',
    data: {
      result: [],
      array: [{
       id: 1
      }, {
       id: 2
      }, {
       id: 3
      }]
    }
  })</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://unpkg.com/vue"&gt;&lt;/script&gt;
  
  &lt;div id="app"&gt;
    &lt;div v-for="(item, index) in array" :key="item.id"&gt;
      &lt;input type="number" :id="item.id" v-model="result[index]"&gt;
      &lt;br&gt;
    &lt;/div&gt;
    &lt;span&gt;Result: {{ result }}&lt;/span&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>