title: How to loop through input type number in vuejs so that I can track value of each iteration?
body: <p>In my opinion, it's a simple question but couldn't make it work after many efforts.
  I have an array named as <code>mainList</code>, on every iteration of array, I render input element:</p>
  <pre><code>&lt;div class=&quot;col-lg-6 col-sm-12 resource-list&quot; v-for=&quot;resource in mainList&quot; :key=&quot;resource&quot;&gt;
         &lt;span&gt;{{ resource }}&lt;/span&gt;
         &lt;div class=&quot;quantity-box&quot;&gt;
             &lt;input
                      type=&quot;number&quot;
                      step=&quot;1&quot;
                      min=&quot;1&quot;
                      :id=&quot;resource&quot;
                      :name=&quot;resource&quot;
                      v-model=&quot;initialValue&quot;
               /&gt;
         &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  <p>where <code>initialValue=0</code>. The Problem I am facing is, whenever I try to change value of one input box, all gets changed. I want to add all the input field having value greater than <code>initialValue</code> to an array and perform some task with that array. How can I do so ? Thanks in advance.</p>
  <p><strong>EDIT</strong>:  When I replace  <code>v-model=&quot;initialValue&quot;</code> with <code>:value=&quot;initialValue&quot;</code>, one input selection doesn't change the value of others but don't know how to save them on an array.
  This is my <code>data.js</code> file code which I have imported.</p>
  <pre><code>export default {
    data() {
      return {
        initialValue: 0,
        mainList: [
          &quot;Analytices &amp; insights&quot;,
          &quot;Journey Mangment&quot;,
          &quot;Segments &amp; Audience&quot;,
          &quot;Personalised experiences&quot;,
          &quot;Campaign Orchestration&quot;,
          &quot;Customer Acquisition&quot;
       ]
     }
   }
  }
  </code></pre>
  <p>Right now this is how it looks:
  <a href="https://i.stack.imgur.com/QINCq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QINCq.png" alt="enter image description here" /></a></p>
  <p><strong>Expected Output</strong>: I want to save those resource name into an array whose value is greater than 0.</p>