Activity › Forums › Salesforce® Discussions › What are the type of events into Salesforce Lightning component?
Tagged: Event Type, Lightning Component Framework, Salesforce Event, Salesforce Lightning Components
-
What are the type of events into Salesforce Lightning component?
Posted by PRANAV on May 1, 2018 at 10:44 AMWhat are the type of events into Salesforce Lightning component?
Aman replied 8 years ago 3 Members · 2 Replies -
2 Replies
-
Hi pranav,
a. Application Event – Scope of this event is throughout the lightning App and any component which has registered for this event would get a notification.
b. Component Event– Scope of this event is within itself or the parent component of this event, all the components declared within the parent component would get notified of this event.
c. System Event- these are the events fired by Salesforce’s system during the lifecycle of the lightning app.Thanks.
- [adinserter block='9']
-
Hi Pranav,
A component registers that it may fire an event in its markup. Events are fired from JavaScript controller actions that are typically triggered by a user interacting with the user interface.
There are two types of events in the framework:
Component events are handled by the component itself or a component that instantiates or contains the component.
Application events are handled by all components that are listening to the event. These events are essentially a traditional publish-subscribe model.Thanks
Log In to reply.