Activity Forums Salesforce® Discussions When should we use Component event and application events in Salesforce?

  • Prachi

    Member
    September 23, 2019 at 11:38 am

    Hi,

    Component events are used to do communication between child and parent. They use bubbling and capture same as used in DOM events. A change in a child component can be communicated to the parent component via component event.

    Application events are used to communicate any change in the component to a broader audience. Any component who has registered for this event will get a notified.

    Thanks.

  • Deepak

    Member
    September 23, 2019 at 1:05 pm

    A change in a child component can be communicated to the parent component via component event. Component events are used to do communication between child and parent. Application events are used to communicate any change in the component to a broader audience. Any component who has registered for this event will get a notified. They use bubbling and capture same as used in DOM events.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos