Event Handling in LWC (Lightning Web Components)

There are two ways for Event Handling in LWC (Lightning Web Components): Event Handling using the Child component tag. Event Handling in JS Controller. In this post, we will implement the event handling using Child component creation tag. There are two types of communication in Component hierarchy. Parent to Child communication where we need to … Read more

Calling Method of Child Component from Parent in LWC

In order to call methods of Child Component from Parent Component in LWC (Lightning Web Components), we need to perform the following steps: Declare method of Child Component as a public method with @api annotation. Get the instance of Child Component in Parent Component JS using querySelector(). Call the method of Child Component using the … Read more