Activity Forums Salesforce® Discussions What are the type of events into Salesforce Lightning component?

  • Manpreet

    Member
    May 1, 2018 at 10:45 am

    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.

  • Aman

    Member
    May 1, 2018 at 10:46 am

    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.

Popular Salesforce Blogs

Popular Salesforce Videos