vue axios get response data code example
Example 1: vuejs list items from axios
-
{{food.name}}
- {{nutrient.nutrient_id}}
axios.get(url).then(response => {
this.foods = response.data.report.foods
})
Example 2: vue get data from backend
vue get data from backend