답변 6개

Hi Mahamed,Please try this code:LWC js file:navigateToComponent() { this[NavigationMixin.Navigate]({ "type": "standard__component", "attributes": { "componentName": "c__navigateAura", }, state: { c__recordId: this.recordId } });}Aura Component:navigateAura.cmp<aura:component implements="lightning:isUrlAddressable,force:hasRecordId" access="global" > <aura:handler name="init" value="{!this}" action="{!c.doInit}"/> <aura:attribute name="recordId" type="String"/> <aura:attribute name="test" type="string"/> {!v.recordId} --->this record Id comping Null.</aura:component>navigateAura.js:({ doInit : function(component, event, helper) { var myPageRef = component.get("v.pageReference"); var recordId = myPageRef.state.c__recordId; component.set("v.recordId", recordId); }})I hope it helps you.Please let me know if you have any other query and If this solution is helpful then please mark it as Best Answer.Thanks,Ankit Rathor