Vue is kicking an error in the console for "cannot read property (property name) of undefined". I've tried using v-if but still getting the error. It seems like the object doesn't exist or cannot be accessed like I have defined it, but I don't know why?
object defined in Vue as:
customerData:{
address:{
firstName:'',
lastName:''
}
}
Html
<div v-if="customerData.address.firstName">
<input v-model="customerData.address.firstName">
</div>
What am I missing?