
4 answers
Events are used to communicate between components. As you might know, we have 2 types of events - COMPONENT and APPLICATION.
- Create a lightning event and specifty the event type. [File > Lightning Event ]
- Create an attribute in event resource. This attribute holds the value which needs to be passed to other components.
- Register the event
- Pass the value to that attribute when you are firing event from a component.
- Get the value of the attribute in your handler component.
You can check tralhead or
https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/events_intro.htmThanksBrahma