You need to sign in to do that
Don't have an account?
I am able to fire an event even without using aura:registerEvent tag. In which scenarios do we need to use this tag?
I am able to fire an event even without using aura:registerEvent tag. In which scenarios do we need to use this tag?
Is it useful ?
Is it useful ?
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 the component event and is not used for application event. Another attribute is the ‘type’ which lets the component know which event would be fired.
Ex. <aura:registerEvent name=”Event” type=”c:EventName”/>
Check below link which can give more information on aura:registerEvent.
https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/events_component_fire.htm
http://amitsalesforce.blogspot.com/2018/09/component-event-in-lightning-component.html
Thanks,
Vinay Kumar