How to register, fire and handle a component and application event?
Answer / 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 |
How to get the userid of all the currently logged in users using apex code?
What are the different ways to store various types of records in salesforce?
Mention what is the difference between soql and sosl?
How much does a Salesforce license cost?
How many custom fields can I created in an object? : salesforce admin
Explain the skinny table. What are the considerations for skinny table?
Are there any css (styles) provided by salesforce.com as part of the supported lightning components ? : salesforce lightning component
What is the use of implements in lightning component?
Difference between soql vs sosl in salesforce?
What is the purpose of <script> tags? : salesforce visualforce
What is the use of the database class in apex ?
Compare Jump Start Wizard vs. Standard Wizard?