Solution for "vue js method get data from api"

<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 })

vuejs list items from axios

Similar codes for "vue js method get data from api"


Latest 'Javascript' questions

Added before "vue js method get data from api"