Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. <aura:component controller="MyController" implements="flexipage:availableForAllPageTypes,force:appHostable,force:hasRecordId,force:hasSObjectName,force:lightningQuickAction" >
  2. . . .
  3. (omitted code)
  4. . . .
  5. <aura:handler name="init" value="{!this}" action="{!c.doInit}"/>
  6. <aura:handler name="destroy" value="{!this}" action="{!c.handleDestroy}"/>
  7. <aura:handler event="aura:locationChange" value="{!this}" action="{!c.handleLocationChange}"/>
  8. </aura:component>
  9.  
  10. ({
  11.  
  12. . . . omitted code . . .
  13.  
  14. doInit: function( component, event, helper ) {
  15.  
  16. console.log( "doInit" );
  17.  
  18. },
  19.  
  20. handleDestroy : function( component, event, helper ) {
  21.  
  22. console.log( "handleDestroy" );
  23.  
  24. },
  25.  
  26. handleLocationChange: function( component, event, helper ) {
  27.  
  28. console.log( "location change" );
  29.  
  30. }
  31.  
  32. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement