Answers for "push values to data object in vue"

0

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)
  })
}
Posted by: Guest on April-30-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language