function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Rahul Kumar 652Rahul Kumar 652 

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 ?
VinayVinay (Salesforce Developers) 
Hi Rahul,

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