August 13, 2019

Simple Lightning Web Component

LWC:


  1. <template>  
  2.   
  3.     Hello World  
  4.   
  5. </template>  

Lightning Component:


  1. <aura:component implements="force:appHostable">  
  2.   
  3.     <article class="slds-card">  
  4.   
  5.         <c:sample/>  
  6.            
  7.     </article>  
  8.   
  9. </aura:component>   

Output:

Create a Lightning component tab to view the output.


No comments:

Post a Comment