I'm actually a newbie to Vue JS, so i've been having a bit of a problem looping through api responses with v-for here's my html
Get Coins Data
<div v-for="coin in coinsData">{{coinsData.data.coins.name}}</div>
my javascript:
var app = new Vue({
el: '#app',
data: {
coinsData: []
},
methods: {
getCoinsData() {
fetch("https://api.coinranking.com/v1/public/coins")
.then(response => response.json())
.then(data => (this.coinsData = data));
}
}
})
the response I want to loop through is at https://api.coinranking.com/v1/public/coins Its quite large so I didn't paste it in here :)