Friday, October 2, 2020

How to write IF ELSE condition under LWC .html file:

Below is the block of code to use If/Else condition under LWC UI (.html file). Condition variable you can defined under .js file.

<!-- If Condition-->
    <template if:true={your_Variable_defined_in_JS}>
        <!-- Put your UI logic here. -->
    </template>
    <!-- Else Condition-->
    <template if:false={your_Variable_defined_in_JS}>
        <!-- Put your UI logic here. -->
    </template>


LWC to LWC Communication using Lightning Messaging Service (Part - 2)

In my previous post ( previous post link ) we have learn how to create a Lightning Messaging Service with 6 steps and today we will use the ...