Answer the question
In order to leave comments, you need to log in
Vue.js escaping in v-for?
How to output data via v-for when it is presented like this:
{
"0": {
"link": {
"#text": "http://..."
} ,
"media:content": {
"@attr": "http://..."
}
}
}
# : @
Answer the question
In order to leave comments, you need to log in
Understood. Outputted in square brackets:
<div v-for="(item, index) in newsArray.item" :key="index">
<img :src="item['media:content']['@attr']" alt="">
</div>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question