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

Convert Lightning component to Web component
Hi All,
I am trying to convert lightning component to web component but not sure how to handle below situation.
Input.Cmp
I am trying to convert lightning component to web component but not sure how to handle below situation.
Input.Cmp
<aura:component> <aura:attribute name="BolAttribute" type="Boolean"/> <aura:attribute name="intAttribute" type="Integer" default="0"/> <lightning:input type="Text" name="input1" label="Enter a Name" /> <Lightning:button aura:id="button" onClick="{!c.setTrue}" /> </aura:component>Input.js
({ setTrue: function(c,e,h){ c.set("v.BolAttribute", true); var in = component.find("button").get("v.value") if(in=='Text'){ console.log('true'); } }, })
App.js
All Answers
Please try below LWC code, which is equivalent to above mentioned Lightning Component Code.
App.html
App.js
Hope it will help you 😊
Ravindra Nath
Thanks for your response. I missed to add the checkbox field and some modification in JS Controller..
Thanks in Advance
App.js