populate data object with array in vue js code example
Example: push values to data object in vue
let vm = this;
function getData (rss) {
rss.forEach(episodeData => {
// console.log(episodeData)
const data = {
'id': episodeData.created,
'desc': episodeData.description
}
vm.episodes.push(data)
})
}