An Aura component can only be the parent of LWC, a LWC can not call Aura component and another thing you can call LWC in Lightning component then you can follow the given below link:-
An Aura component can only be the parent of LWC, a LWC can not call Aura component and another thing you can call LWC in Lightning component then you can follow the given below link:-
Hi Kamal, I have gone through the problem and found out that as per official documents on lightning web components "Aura components can contain Lightning web components. However, the opposite doesn’t apply. Lightning web components can’t contain Aura components." So as per this statement we can not call lightning components from web components directly. More more info please refer to the following links: https://developer.salesforce.com/docs/component-library/documentation/lwc/interop_intro
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too. Thanks, Ajay Dubedi
An Aura component can only be the parent of LWC, a LWC can not call Aura component and another thing you can call LWC in Lightning component then you can follow the given below link:-
https://developer.salesforce.com/docs/component-library/documentation/lwc/lwc.interop_aura_composition
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks and Regards,
Deepali Kulshrestha
All Answers
An Aura component can only be the parent of LWC, a LWC can not call Aura component and another thing you can call LWC in Lightning component then you can follow the given below link:-
https://developer.salesforce.com/docs/component-library/documentation/lwc/lwc.interop_aura_composition
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks and Regards,
Deepali Kulshrestha
I have gone through the problem and found out that as per official documents on lightning web components "Aura components can contain Lightning web components. However, the opposite doesn’t apply. Lightning web components can’t contain Aura components." So as per this statement we can not call lightning components from web components directly. More more info please refer to the following links:
https://developer.salesforce.com/docs/component-library/documentation/lwc/interop_intro
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks,
Ajay Dubedi