title: V-model using v-for and manipulating array
body: <p>I can’t figure out in this case how manipulate with v-model change amounts array.</p>
  
  <p>With this code i generated inputs for each item and i want with this inputs change amounts for each item in array eg: if write first input 10 first item amounts array will be 10, 10, 10, 10, 10, 10</p>
  
  <p>I tried to make dynamic v-model prop with index but its not worked.</p>
  
  <p>here is my fiddle : <a href="http://jsfiddle.net/eywraw8t/532119/" rel="nofollow noreferrer">http://jsfiddle.net/eywraw8t/532119/</a> can someone help me?</p>
  
  <pre><code>category: [{
              id: 0,
              sub: 'a1',
              types: [{
                      id: 1,
                      value: "P A",
                      amounts: [20, 32, 20, 12, 12, 2]
                  },
                  {
                      id: 2,
                      value: "P B",
                      amounts: [0, 32, 20, 12, 12, 2]
                  },
                  {
                      id: 3,
                      value: "P C",
                      amounts: [30, 32, 20, 12, 12, 2]
                  },
                  {
                      id: 4,
                      value: "P D",
                      amounts: [50, 32, 12, 30, 12, 2]
                  }
              ]
          }]
  
  
  
  &lt;div id="app"&gt;
  
  &lt;div v-for="item in category"&gt;
      &lt;h1&gt;
          {{item.sub}}
      &lt;/h1&gt;
      &lt;div v-for="type in item.types"&gt; 
          {{type.value}}  
          &lt;input type="text" v-model="someModel"&gt;
           &lt;div&gt;
          &lt;ul&gt;
              &lt;li v-for="amount in type.amounts"&gt;{{amount}}&lt;/li&gt;
          &lt;/ul&gt;
      &lt;/div&gt;
      &lt;/div&gt;
  
  &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>