Skip to content

Tag: vue.js

Use that was imported in the parent

I’m building a component that manages other components. It dynamically render components in specific places depending on the props and inputs, much like an orchestrator. Use case My orchestrator have the following placeholders, like a grid (p1 … p6): In a given moment, it renders the component C1 …

Emit an event from child mount and access from parent mount

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…