Evorlor
0
Q:

vue get data from backend

<ul>
    <li v-for="food in foods">
        <h2>{{food.name}}</h2>
        <ul>
              <li v-for="nutrient in food.nutrients">{{nutrient.nutrient_id}}</li>
        </ul>
    </li>
</ul>


axios.get(url).then(response => { 
    this.foods = response.data.report.foods
})
0
 <a :href="post.url" target="_blank"><img :src="post.image_url"></a>
0
vue get data from backend
0

New to Communities?

Join the community