Let's say I have a component called child
. I have data there that I want to access in my parent component. I want to emit an event in the childs
mount: this.$emit('get-data', this.data)
before finally retrieving it in the parent mount. Is this possible to do / practical? If it is how can one achieve it? If not, what are some better alternatives?
Cheers.