I use axios to get information from DB. I get response from server in array:
My html tags:
Js code looks like this:
data() {
return {
departments: {
id: 0,
name: "name of company",
nameZod: "name of company dif"
},
};
},
created() {
axios
.get('/SomeController/Departments')
.then(response => {
this.departments = response.data;
console.log(this.departments);
})
}
I get an error: Cannot read property '_wrapper' of undefined. Its very strange cause I use similar code in other module and it works correctly.
Maybe you have defined a function call somewhere (@click=something) and you haven't defined yet the function in methods. This happened to me, maybe it can be useful for someone
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With