Newer Version Available

This content describes an older version of this product. View Latest

Component Handling Its Own Event

A component can handle its own event by using the <aura:handler> tag in its markup.

The action attribute of <aura:handler> sets the client-side controller action to handle the event. For example:

The name attributes in <aura:registerEvent> and <aura:handler> must match, since each event is defined by its name.

Note