V-for and v-model json properties dynamic

Hello there!
Well this time I bring to you a new question. Let me explain to you this a little bit (Thank for you patience)

As I read it’s possible to create a v-model property dynamically as follow:

<div v-for="(item, index) in names" :key="item.name">
    <vs-input :id="item.name + '_' + index" v-model="myDynamicModel[item.name]"/>
    <vs-input :id="item.lastname + '_' + index" v-model="myDynamicModel[item.lastname]"/>
</div>
....
data() {
  return {
     names: [
         {
             name:'myDynamicNameProperty',
             lastname:'myDynamicLastNameProperty'
         },
         {
             name:'myDynamicSeparatedNameProperty',
             lastname:'myDynamicSeparatedLastNameProperty'
         }
     ],
     myDynamicModel: []
  }
}

If myDynamicModel is printed, it shows myDynamicNameProperty and myDynamicLastNameProperty as a new properties inside it (On position 0)

myDynamicModel
  [0] {
    myDynamicNameProperty: '...',
    myDynamicLastNameProperty: '...',
    myDynamicSeparatedNameProperty: '...',
    myDynamicSeparatedLastNameProperty: '...'
  }

This is great, but here is my question:
is there a way to give for each names value a separated order inside the myDynamicModel array?
I tried this but it does not work:
v-model="myDynamicModel[index][item.name]"

Im looking an output like this:

myDynamicModel
  [0] {
    myDynamicNameProperty: '...',
    myDynamicLastNameProperty: '...'
  },
  [1] {
    myDynamicSeparatedNameProperty: '...',
    myDynamicSeparatedLastNameProperty: '...'
  }

Any idea?
Thank in advance

Using the [index] syntax, you no longer reference item.

So this:

v-model="myDynamicModel[index][item.name]"

is invalid because of item.name.

Because you’re property names differ between objects, then you need to account for this by using the object key.

<div v-for="(item, index) in names">
    <vs-input
      v-for="(val, key) in item"
      v-model="myDynamicModel[index][key]"
    />
</div>

Hey James! Thx, it works with your response!