Blogs

  • How To Retrieve Javascript Methods From A Child Component Within A Parent Component In LWC

    In this article, we’ll explore accessing JavaScript methods defined in a child component from a parent component. For simplicity, we’ll only include JavaScript code here. First Step The initial fundamental step involves exposing a public method and decorating it with @api. Public methods form a component’s API, enabling communication down the hierarchy as parent components…

    Read more…

  • Employing .Map() For Iterating Through Array Items in JavaScript

    We’re aware of the various techniques and methods employed to iterate through datasets in JavaScript, ranging from classic for loops to the forEach() method. One particularly popular method is the .map() method. This method serves various purposes when working with arrays. In this article, we’ll explore the utilization of .map() in JavaScript for invoking a…

    Read more…

  • Comprehending JavaScript Promises For Lightning Web Components LWC With An Illustration.

    In this article, we’ll initially explore Promises from a JavaScript perspective, and subsequently, with an example component, we’ll examine them within the context of Lightning Web Components LWC A Promise is an entity representing the eventual accomplishment or failure of an asynchronous task. Since many individuals utilize pre-existing promises, this guide will elucidate the handling…

    Read more…