Chapter 4: LWC Tutorial – Getters and Setters
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…
Chapter 4: LWC Tutorial – Attributes and Properties
These are very interchangeable terms and confusing, usually, when we talk about attributes it’s in the HTML context and properties are in the JavaScript context. JavaScript is case sensitive while HTML is not and that is why we use the kebab case when binding any javascript property in HTML. For…
Chapter 4: LWC Tutorial – Component Composition
An event is a signal that some action has taken place. There are many types of events like keyboard events, mouse events, etc. For sake of understanding, we are dividing events into two broad types. Browser Events: Any change that happens on the browser, for example, typing with your keyboard…