Answer the question
In order to leave comments, you need to log in
How to draw received values from the server through v-for?
Hello! Got data from server:
axios.get(url
).then((response) => {
response.data["detail"]["show_contact"] = false;
this.show = response.data["detail"];
}).catch((error) => {
console.log(error);
});
<h3 v-for="(i, key) in show">{{key}} - {{i}} - {{i.key}}</h3>
Answer the question
In order to leave comments, you need to log in
You have show, which is an object whose values are other objects or arrays. To display objects, you need to write a separate v-for loop for them. For arrays too, but you can also use str.join(',')
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question