Vue 3 component communication: parent, child, and sibling components

Vue 3 component communication: parent, child, and sibling components

cdruc

2 года назад

9,756 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Issa Issifou
Issa Issifou - 23.04.2023 18:31

Thank you so much.

Ответить
Lekwuwa David Okorie
Lekwuwa David Okorie - 23.04.2023 00:34

Thank you so much. I am new to vue js. I believed so much that there would be a communication between sibling componenets without it always passing through the parent component. We are facing a challenge where we have many dynamic forms that are displayed in the parent component using the : is component tag. Sometimes we would like to get an input from a form(child component) no matter which one it is and automatically display it in another form input field.

Ответить
Bhola Kr Khawas
Bhola Kr Khawas - 21.10.2022 13:44

thanks so much it saved my day.

Ответить
Dylan
Dylan "the brand slayer" Mulveiny - 28.08.2022 08:44

This is absolutely anti-pattern. Do not do this. Instead, use provide/inject. This is a terrible video.

Ответить
Bhupender Singh
Bhupender Singh - 18.08.2022 06:26

great help! Really I was looking for some ideas on sibling communication, this video of yours has given some insight to me. Thanks

Ответить
Bhupender Singh
Bhupender Singh - 18.08.2022 06:26

great help! Really I was looking for some ideas on sibling communication, this video of yours has given some insight to me. Thanks

Ответить
SKRUBL0RD
SKRUBL0RD - 22.07.2022 18:52

i have done like the sibling components example but it says Uncaught (in promise) TypeError: (intermediate value).setWhatever is not a function

Ответить
月月月
月月月 - 18.07.2022 17:27

讲的很好,谢谢(点赞)

Ответить
Nordic Nomad
Nordic Nomad - 28.06.2022 01:57

thanks for the informative video. just a quick question...

I have two components
1. flagcard ( just a div card showing a flag )
2. greeting ( a text input taking the name of country )
I need to achieve : if the user enter a country name in greeting component , then I have to pick that name and show in the second component - flagcard .
both are sibling components, how can I achieve this ?
I am super dummy with VueJS

Ответить
Dmitriy Kret
Dmitriy Kret - 24.04.2022 12:55

+++

Ответить
samiebuka
samiebuka - 05.04.2022 12:42

in this case store is sort of a composable. right? the side bar and the open state could be in a composable so that it would we reusable in other projects. I am correct?

Ответить
MariYo
MariYo - 29.03.2022 06:12

Thank you, you explained it in such a clear way!

Ответить
Ashraf Ezzat
Ashraf Ezzat - 29.03.2022 03:02

Fantastic, but can i get a cut of the 64k if i suggest using a simple event bus, something like Mitt?

Ответить