vue js push data in object 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)
})
}