Created
November 12, 2018 06:34
-
-
Save simpluslabs/09d93b94f9dc687085468f0deb45ba57 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--c:eventHandler--> | |
<aura:component> | |
<aura:attribute name="messageFromEvent" type="String"/> | |
<aura:attribute name="numEvents" type="Integer" default="0"/> | |
<!-- Note that name="cmpEvent" in aura:registerEvent | |
in ceNotifier.cmp --> | |
<aura:handler name="cmpEvent" event="c:testEvent" action="{!c.handleComponentEvent}"/> | |
<!-- handler contains the notifier component --> | |
<c:eventNotifier /> | |
<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