I currently have the following object:
data: () => ({
customer: {
item: {
name: undefined
}}
})
This object is being used in the template as follows:
<v-number
separator="."
decimal="2"
group-by="3"
error-text="system.global.customer"
v-model="customer.item.name"
></v-number>
However, I am encountering an error:
[Vue warn]: Error in render: "TypeError: Cannot read property 'name' of undefined"
What could I be doing wrong?
On the other hand, this section of code works correctly:
data: () => ({
customer: {
item: undefined}
})
v-model="customer.item"