Guest User

Untitled

a guest
Sep 19th, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. <aura:component implements="force:appHostable,flexipage:availableForAllPageTypes" access="global" >
  2.  
  3. <!--Include EmpApiDemo child component and pass channel name to subscribe
  4. ex: "/topic/AccountSpy" is my pushtopic channel name
  5. once the event is fired, it will handled in handleMessage controller method -->
  6. <c:EmpApiDemo channelName="/topic/AccountSpy" onEmpEvent="{!c.handleMessage}" />
  7.  
  8. <!-- lightning card to display detail -->
  9. <lightning:card footer="This component displays account changes using lightning:empApi component"
  10. title="Account Spy"
  11. iconName="standard:search">
  12. <div id="output">
  13. </div>
  14. </lightning:card>
  15. </aura:component>
Add Comment
Please, Sign In to add comment