Wednesday, February 12, 2020
Vue js : Passing data back to parent?
export default {
methods: {
onClickButton (event) {
this.$emit('clicked', 'someValue')
}
}
}
Parent component receive
clicked event:<div>
<child @clicked="onClickChild"></child>
</div>
export default {
methods: {
onClickChild (value) {
console.log(value) // someValue
}
}
}
https://forum.vuejs.org/t/passing-data-back-to-parent/1201
Subscribe to:
Posts (Atom)
-
https://www.nicesnippets.com/blog/laravel-9-comment-system-example-tutorial
-
Organization : Keeping each site's configuration in separate files makes the server easier to manage, especially when hosting multiple...
-
On one end of the spectrum, you have your no-code dogmatics. On the other end, you have your fancy tech stack enthusiasts. In the middle a...