Answer the question
In order to leave comments, you need to log in
Why does v-for on an object output each character instead of the value?
console.log(this.apps);
[{"header_image":"http:\/\/cdn.akamai.steamstatic.com\/steam\/apps\/372512\/header.jpg?t=1447374903"},{"header_image":"http:\/\/cdn.akamai.steamstatic.com\/steam\/apps\/412242\/header.jpg?t=1498162058"}]
mounted: function () {
for(let i = 0; i < this.apps.length; ++i){
console.log(this.apps[i].header_image);
}
},
// return
405 undefined
<div class="col-md-1 last_wins-app roll-item-wrap" v-for="(value, propertyName) in apps">
{{ value }}
</div>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question