displaying items from firebase realtime database vue store

牧云@^-^@ 提交于 2020-01-22 02:48:06

问题


i have a state

state: {
  movies:null,
  items:''
},

saves data to the array then it is sent to the database

i have a getter

getMovies: state => {  
  return state.movies
}

i want to display all the movies in the database

<div  v-for="item in this.$store.getters.getMovies" :key="item.id">
  {{ item.name }}
</div>

this does not display the data

来源:https://stackoverflow.com/questions/59740866/displaying-items-from-firebase-realtime-database-vue-store

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!