Fire child lwc component function from Aura component function:In this post we will learn how to fire or call function which is in child lwc component when some event occurred on parent lightning aura component.
If we want to call child lwc component function then
- Child LWC component function should be public (decorated with @api).
- On parent aura function we need to get child component by using aura:id and then we can invoke child function (We should give same function name defined in child lwc).
Once we click "Click Me" button, checkbox on child lwc component will be checked automatically.
Related Posts: Fire child LWC component function from parent LWC function