Activity Forums Salesforce® Discussions What is aura:registerevent in Salesforce Lightning Component?

  • Manpreet

    Member
    May 1, 2018 at 10:57 am

    Hi shubham,

    aura:registerevent is the notifier component and it declares that it may fire a particular event, it includes ‘name’ attribute which is relevant only to component event and is not used for application event. Other attribute is the ‘type’ which lets the component know which event would be fired.

    Ex. <aura:registerEvent name=”Event” type=”c:EventName”/>

    Thanks.

  • Parul

    Member
    September 24, 2018 at 12:40 am

    Use the <aura:registerEvent> or <aura:dependency> tags to ensure that the event is sent to the client, when needed.

    <aura:registerEvent name="Event" type="c:EventName"/>

    name’ attribute which is relevant only to component event and is not used for application event.

    ‘type’ which lets the component know which event would be fired.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos