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)
-
✅ Step-by-Step: Install PostgreSQL via EDB Installer (No Brew) 🔗 1. Download the Installer Go to the official PostgreSQL download page:...
-
A Comment system is a primary requirement for blog website or any tutorial website. in this post i want to share with you how to create co...
-
https://www.positronx.io/build-secure-php-rest-api-in-laravel-with-sanctum-auth/