Salesforce Platform Developer I (legacy) — Question 190
Since Aura application events follow the traditional publish-subscribe model, which method is used to fire an event?
Answer options
- A. emit()
- B. fireEvent()
- C. fire()
- D. registerEvent()
Correct answer: C
Explanation
The correct method to trigger an event in the Aura framework is 'fire()'. The other options, such as 'emit()', 'fireEvent()', and 'registerEvent()', do not exist in the context of firing events, and therefore are incorrect in this scenario.