How to trigger and handle event in LWC

preview_player
Показать описание
In this example I have used very simple case to demonstrate. If you have any scenario, let me know I will try to add those case also in my upcoming videos.
Communication between two LWC.
Passing values from child LWC to Parent LWC.
Custom javascript event.
Рекомендации по теме
Комментарии
Автор

Great explaination I loved it,
the only problem is I am unable to figure out what's exact difference is this to your other video where it is just bubbles:true composed:false

IncredibleInside
Автор

Very nicely explained. Can you also explain about the @track attribute you using?

stockexchangetips
Автор

Is the child event handled in the same way it gets handles in application event in aura. Like it can be handles by any other component or it should be a parent only.

And kindly please tell any real time use case of child to parent and parent to child communication in lwc

nishantkumar-vvpf