Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. <aura:component implements="force:hasRecordId,flexipage:availableForAllPageTypes"
  2. access="global">
  3. <aura:handler name="change" value="{!v.recordId}" action="{!c.onRecordIdChange}"/>
  4.  
  5. <c:lwc_my_comp record-id="{!v.recordId}" ><c:lwc_my_comp>
  6.  
  7. </aura:component>
  8.  
  9. ({
  10. onRecordIdChange : function(component, event, helper) {
  11. var newRecordId = component.get("v.recordId");
  12. console.log(newRecordId);
  13. }
  14. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement