Salesforce Fact #137 | LWC pass value from parent to child on button click

Suppose we have a use case in LWC where we need to pass value from parent to child only on button click. So, we have a text box where the user will give the input, and the value should not be passed until the button is pressed.

This scenario can be implemented by conditionally rendering the child component.

Collected from: https://salesforce.stackexchange.com/questions/299066/call-child-lwc-from-parent-lwc-through-button

Attached are the screenshots.






 

Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

Salesforce Fact #457 | Get current user role name in flow