[Vuejs]-How to get data and methods from onther componenet

0👍

So if i understood the question well you want to pass data from parent to child and conversely is it right ? So if it’s exactly that you have to use props to pass from the parent to the child so from your Dashboard to your child components and events named $emit('evenexemple', data) and call the event at the parent tag to pass data from child to parent from your child component to your Dashboard. I let you see the documentation 😉

https://vuejs.org/guide/components/props.html

https://v2.vuejs.org/v2/guide/components-custom-events.html

Leave a comment