function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
kamal_Raokamal_Rao 

how can i call lightning component in LWC ?

Best Answer chosen by kamal_Rao
Deepali KulshresthaDeepali Kulshrestha
Hi Kamal,

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

Deepali KulshresthaDeepali Kulshrestha
Hi Kamal,

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
This was selected as the best answer
kamal_Raokamal_Rao
Thank you @Deepali Kulshrestha
Ajay K DubediAjay K Dubedi
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