Now if we need to understand in Lightning terms, then we create
different events which will be used by components to interact between
them. Below are different steps for this event handling:
- Create a Lightning event and create different attributes in it which can be used to pass information between components.
- Component which want to fire an event needs to first register for an event by using <aura:registerEvent>. Then only it can fire an event and other component can receive it.
- Component which wants to receive information will handle the event using <aura:handler> and type as Ligthning Event which we create.
No comments:
Post a Comment