title: VueJS Components inside a loop act as one
body: <p><strong>UPDATE</strong>
  Was able to make it work, but got one last problem. Updated code is here:
  <a href="https://stackoverflow.com/questions/60077788/vuejs-not-working-on-first-click-or-first-event">VueJs not working on first click or first event</a></p>
  
  <h2>-----------------------------------------------------------</h2>
  
  <p>I've been trying to find out a way for the components inside a loop to not act as one.</p>
  
  <p>I have a loop (3 divs), and inside the loop, I have 2 textboxes. But whenever I enter a value in any of them, the value is populated to everyone.</p>
  
  <p>Can anyone help me separate those components?</p>
  
  <p>I'm trying to make the parent div (1st loop) dynamic. So the children components (2nd loop) should be acting separately with their own grandparent components (textbox).</p>
  
  <p>Here's my code:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;div id="app"&gt;
      &lt;div v-for="(ctr, c) in 3" :key="c"&gt;
        &lt;button @click="input_add"&gt;1st&lt;/button&gt;
        &lt;div&gt;
          &lt;div v-for="(input, act) in inputs" :key="act.id"&gt;
            &lt;input type="text" v-model="input.name"&gt; 
            &lt;input type="text" v-model="input.time"&gt;
            &lt;button @click="input_remove(act)"&gt;Delete&lt;/button&gt;
            &lt;button @click="input_add"&gt;Add row&lt;/button&gt;
          &lt;/div&gt;
        &lt;/div&gt;
        {{ inputs }}  
      &lt;/div&gt;
    &lt;/div&gt;
  </code></pre>
  
  <pre><code>const app = new Vue({
      el: "#app",
      data: {
      inputs: [],
      counter: 0,
    },
  
    methods: {
      input_add() {
        this.inputs.push({
          id: this.counter + 1,
          day: null,
          name: null,
          time: null,
        })
        this.counter += 1
      },
      input_remove(index) {
        this.inputs.splice(index,1)
        this.counter -= 1
      }
    }
  });
  </code></pre>
  
  <p>Result:</p>
  
  <p><img src="https://i.stack.imgur.com/3lDVq.png" alt="Result Screenshot"></p>