Creating a component event

To create a component event, create a a.evt file using the Developer Console; the type is specified as the COMPONENT:

<!--c:compEvent--><aura:event type="COMPONENT"> <!-- Add aura:attribute tags to define event shape.   One sample attribute here. --> <aura:attribute name="message" type="String"/></aura:event>

Get Learning Salesforce Lightning Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.