adspace
How to register, fire and handle a component and application event?
Answer Posted / Priyanka Pethe
To register an event in a Lightning component, use the $A.getCallback() function or the $A.* syntax. To fire an event, use $A.get('e.c:eventName').fire(). To handle an event, create an event handler method and use $A.getCallback() to execute it when the event is fired.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers