Monthly Archives : November 2022

Getters and Setters in LWC

On November 29, 2022, Posted by , In LWC Tutorial, With Comments Off on Getters and Setters in LWC

We already discussed the utility of getters, how if we want to display the result of expression we can use getters as HTML doesn’t know to allow to compute an expression on the go. Setters are used if I want to execute a custom logic every time a value of…

Attributes and Properties in LWC

On November 17, 2022, Posted by , In LWC Tutorial, With Comments Off on Attributes and Properties in LWC

In Lightning Web Components (LWC), attributes and properties are central concepts that allow components to interact with each other and handle data effectively. Here’s an overview of both, explaining their roles, usage, and how they differ: Attributes Attributes in LWC are typically used to define the configuration or initial values…

Component Composition in LWC

On November 8, 2022, Posted by , In LWC Tutorial, With Comments Off on Component Composition in LWC

Component composition in Lightning Web Components (LWC) refers to the practice of building complex user interfaces by combining multiple smaller components into a larger, more complex component. This approach leverages the encapsulation and reusability features of LWC to create modular, maintainable, and scalable applications. An event is a signal that…