Activity Forums Salesforce® Discussions What is the basic difference between Application Event and Component Event?

  • What is the basic difference between Application Event and Component Event?

    Posted by Nikita on October 11, 2019 at 1:30 pm

    What is the basic difference between Application Event and Component Event?

    Yogesh replied 5 years, 2 months ago 2 Members · 1 Reply
  • 1 Reply
  • Yogesh

    Member
    October 11, 2019 at 2:34 pm

    Hello,

    Component events: to talk to a parent using the capture and bubbling mechanism, like with DOM events. Usually, one component is interested by the event, like an event aggregator.

    Application events: to broadcast to other components and not exclusively ancestors. Applications events can talk to many components that can be interested by the event. The broadcast can be boxed to an area of the DOM (everything below a DIV for example).

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos