Last active
October 8, 2018 17:45
-
-
Save tsmalara/485c4a82911000d2aa7d049d59bdd61d 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
<aura:component controller="EmpApi_exampleController" implements="force:appHostable"> | |
<lightning:empApi aura:id="empApi" /> | |
<aura:handler name="init" value="{!this}" action="{!c.doInit}" /> | |
<lightning:card title="Emp API Example"> | |
<lightning:button variant="brand" label="Publish Event" onclick="{!c.doPublishEvent}" /> | |
</lightning:card> | |
</aura:component> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment