So, I have a simple form:
<template v-for="form in forms">
{{ form.header }}
<template v-for="input in form.inputs">
<label>{{ input.label }}</label>
<v-flex class="xs12 md6">
<input :v-model="input.key" />
</v-flex>
</template>
</template>
Which is being dynamically made from a forms data object:
forms:[
{
header: 'General Information',
description: 'General Information',
inputs: [
{
label: 'First name',
key: 'account.firstname'
},
]
}
I have a pre-build account object for the v-model:
data: () => ({
account: {
firstname: 'Initial firstname'
}
})
But this is not working. I get no errors, but my dynamic v-model is not getting the account.firstname data. What am I missing to fix this?