Skip to content

Instantly share code, notes, and snippets.

@simpluslabs
Created November 12, 2018 07:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simpluslabs/54c1d5e89f6f850eee22afd3c6e8dfe5 to your computer and use it in GitHub Desktop.
Save simpluslabs/54c1d5e89f6f850eee22afd3c6e8dfe5 to your computer and use it in GitHub Desktop.
<aura:component>
<aura:attribute name="messageFromEvent" type="String"/>
<aura:attribute name="numEvents" type="Integer" default="0"/>
<aura:handler event="c:AppEvent" action="{!c.handleApplicationEvent}"/>
<p>{!v.messageFromEvent}</p>
<p>Number of events: {!v.numEvents}</p>
</aura:component>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment