Monday, July 22, 2019

Embed a Lightning Web Compoent (LWC) inside another LWC

Parent-child Communication in LWC

We can call LWC inside another LWC just as aura:component inside another aura:component.

To make this, we just need to put some extra considerations of letter-cases.

For example :  
If we have an LWC "test" to be embedded inside a parent Lightning Web Component
      <c-test></c-test>

If we have LWC "lWC_Test" to be embedded inside the parent LWC 
      <c-l-W-C_-Test></c-l-W-C_-Test>

No comments:

Post a Comment