0๐
i have same problem too. But i think this can help you
It look so stupid but it work for me GL
updatePost: function(post) { this.$firebaseRefs.posts.child(post['.key']).child('title').set(post.title)
this.$firebaseRefs.posts.child(post['.key']).child('content').set(post. content)
this.$firebaseRefs.posts.child(post['.key']).child('story').set(post. story)
},
- [Vuejs]-Bind an inline dynamic css class name using VueJs
- [Vuejs]-Lazy loading with progress bar in Vue.js
0๐
You must use copy of the post
editPost: function(post) {
// Set post values to form
// create a copy of the post
this.newPost = {...post}
},
Source:stackexchange.com