3 Ways to Send Events with VUE EMIT

preview_player
Показать описание
Vue emit lets us emit, or send, custom events from a child component to its parent.

Each Vue Emit called has two parts:
1. The event name - this is any String name
2. A payload object - data that we want to pass with the event

Let me know what you want to see next in the comments!

//

FREE VUE 3 CHEATSHEET WITH ESSENTIAL CODE SNIPPETS

follow me on twitter:

INTRO
Daily (Prod. by Lukrembo)

CHAPTERS
0:00 Introduction
0:26 How Vue Emit Works
1:00 Inline Emit
1:46 Emitting Events in the Options API
2:21 Emitting Events in the Composition API
3:05 Two Vue Emit Tips
Рекомендации по теме
Комментарии
Автор

This is thing I am founding from couple of days.
thanks man.

trueword
Автор

you're a life saver! we need more contents for beginners like this. awesome job !

MonyetLepasCh
Автор

Thank you very much, helped me understand where I went wrong.

lawrencevanafrika
Автор

I like this short and concise content. Thanks.

shensean
Автор

Thanks you so much, it was well explained and very simple to understand. Your earn a subscriber !

sylviegodard
Автор

Thanks for the tip with lowercase on 4:00. I've been struggling with this because of it :D

Szakalaka
Автор

Excellent content, as usual. Key concepts presented clearly in bite-size, easily digestable chunks. Thank you.

LesCarbonaro
Автор

Unbelievable, I thought it was super difficult, but you explained it very well! Thanks

closeluca
Автор

hello, thanks for the video, but i wanna ask in case I wanna call a function from a child to another child through a parent how can I do that ? *im displaying the children through the
parent file (I'm submitting a form)
<child1/>
<child2/>

youssef_uchiha
Автор

simple and concise.
I love this video.

TheANDAMIRO
Автор

Hi man can you introduce the attr the context in the next video?

tristianchung
Автор

It saws on console log but cannot able to fetch this data in browser of parent component in this composition APIs emit way. Is there any way to fix it?
By the way, content is every helpful.

gangnamhero
Автор

This is a fantastic tutorial. Thank you so much!

GreyA
Автор

clear, easy to follow, on-point => awesome!
Thank you!

Benjamin-vxot
Автор

U saved my damn ass...
But, a little suggestion.. for a noobs like me, it might help to draw (visualize) this emit thing, since it a confusing concept at first : )
Great video non the less

Pspisripoff
Автор

can we pass the event with out it waiting for the enter key to be pressed

zekariyasmulugetaaltaye
Автор

what's with composition api w/ setup() method what is the point of that???

christianpaul
Автор

what is <custom-text-input/> component ?

ananduthampi
Автор

It was a really helpfull video. I totaly forgot about context part in setup function and had to use both composition and options api in one component😂 Well thanks to you i know how to do it properly. Thank you!

mowmiadrian