EP-01 | Bind HTML elements in LWC | Place the LWC component on the Lightning Page | LWC Stack


 LWC Stack is Lightning Web Component tutorial series by Salesforce MVP Kapil Batra. In this series you will find LWC tutorials from beginner to intermediate level.

So if you are working on it or planning to learn LWC then this video series is for you. Let's learn and grow together ! Please check complete code below from LWC Stack EP-01
HTML
1
2
3
4
5
6
7
<template>
    <lightning-card title="How to bind HTML element in LWC" icon-name="utility:user">
        <div class="slds-var-m-around_medium">
            Hello, {myValue}!
        </div>
    </lightning-card>
</template>
Javascript
1
2
3
4
5
import { LightningElement } from 'lwc';

export default class BindHTML extends LightningElement {
    myValue = 'Salesforce Bolt';
}

Output :

Please check complete tutorial below

 If you have any question please leave a comment below.

If you would like to add something to this post please leave a comment below.
Share this blog with your friends if you find it helpful somehow !

Thanks
Keep Coding 

Post a Comment

0 Comments