You need to sign in to do that
Don't have an account?

How to Convert Lightning component to Web component
Hi All,
I am trying to convert a lightning component to web component but not sure how to handle the below situation.
js code
I am trying to convert a lightning component to web component but not sure how to handle the below situation.
<aura:component> <aura:attribute name="BolAttribute" type="Boolean"/> <aura:attribute name="intAttribute" type="Integer" default="0"/> <lightning:input type="Text" aura:id="inputId" name="input1" label="Enter a Name" /> <lightning:input type="checkBox" aura:id="checkId" name="checkboxField" label="Yes" /> <Lightning:button aura:id="button" onClick="{!c.setTrue}" /> </aura:component>
js code
({ setTrue: function(component,event){ var checkCmp = component.find("checkId"); var isChecked = component.find('checkId').get('v.checked'); component.set("v.BolAttribute" ,isChecked); var iVar = component.find("inputId").get("v.value") if(iVar =='Text' && iVar==true){ console.log('true'); } }, })
Check if this works for you.
.html
.js