push values to data object in vue

Solutions on MaxInterview for push values to data object in vue by the best coders in the world

showing results for - "push values to data object in vue"
Federica
25 Mar 2018
1let vm = this;
2
3function getData (rss) {
4  rss.forEach(episodeData => {
5    // console.log(episodeData)
6    const data = {
7      'id': episodeData.created,
8      'desc': episodeData.description
9    }
10    vm.episodes.push(data)
11  })
12}
13