I have an object in an array which properties and values are dynamically added like this
dataArray: [
{
first_name: "john",
last_name: "doe",
age: "45"
}
]
I want to create input field corresponding to the object property so I do this
<input v-for="(item,index) in dataArray[0]" :key="index" v-model="item[index]"></input>
Input fields are created but how can I bind the value with the object property, i try to do with (v-model="item[index]") but its not working.