Event Handling in LWC using JS Controller

In this post, we will implement Event Handling in Lightning Web Components using JS Controller. If you want to check how to handle events using Child component tag, please check this post. There are two ways of Event Handling in Lightning Web Components: Event Handling using the Child component tag. Event Handling in the JS … Read more

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