I have data record
record: {
address: {
city: ""
}
}
array of objects that describe field
fields: [
{
name: "address.city"
...
}
]
and try to generate form
<b-field
v-for="field in fields"
:key="field.name"
:label="field.label"
>
<b-input v-model="record[field.name]" />
</b-field>
and get object item with key like address.name
I understand that i should pass to v-model record[address][city] but how to do it from dot delimited string?
Is it possible?