I am taking record id and object name as input from user
<aura:attribute name="recordidinput" type="Id" />
<aura:attribute name="objectname" type="String" />
<lightning:input name="objectdetail" label="Object" value="{!v.objectname }" placeholder="enter the object..."/>
<lightning:input name="recordiddetail" label="Record ID" value="{!v.recordidinput }"
placeholder="enter the recordId..."/>
<lightning:button variant="brand" label="Submit" title="Submit" onclick="{!c.handleSubmit}" />
These attributes have to be passed on to a child component as follows :
<c:displayRecordDetailsLWC recordIdDetail="{!v.recordidinput}" objectName="{!v.objectname}">
The problem is that :
The value should get passed to child component only when submit button is pressed. Right now, the button is useless and due to two-way binding the values are getting updated at every keystroke which is not what I want.