Loading tutorials
@api and place one component inside another in a templ3 min readCustomEvent. Dispatching it, naming rules, and parent handlers each get their own chapter, so this one stays on construction.3 min read@api, and place one component inside another. You should also know what a CustomEvent is from the previous chapter. Here the focus is the act of dispatching: where the call lives, wh3 min read@api properties, nest one component inside another, and dispatch a CustomEvent as shown in the previous chapter. Here you will learn how to pick an event name that the framework accepts and that the parent can listen for.3 min readCustomEvent and how that data reaches the parent. It assumes you know basic JavaScript (classes, objects, modules), the structure of an LWC component, @api properties, and how to place one component inside another's template. It also a2 min read@api and how to place one component inside another. The previous chapters showed how a child creates and dispatches a CustomEvent. Here you wire up 2 min read@api properties, nest one component inside another, and read ES module JavaScript. It also assumes you have already seen a child dispatch a CustomEvent and a parent attach onproductselected in its template. Here the focus is on what the handl2 min read@api properties, nest one component in another's template, and dispatch a CustomEvent from a child. It covers the case where the on<eventname> template attribute is not enough and you attach the listener in JavaScript.2 min readCustomEvent, dispatch it from a child, and handle it in a parent template with an on attribute. Here you will learn how the bubbles and composed options decide which components receive an event.2 min readCustomEvent and a parent that handles it. You should also know basic Jest syntax (describe, it, expect) and have @salesforce/sfdx-lwc-jest set up in your project.3 min readCustomEvent, listen for it in a parent template, and read event.detail. It covers the design choices that keep events easy to use and hard to misuse.3 min readCustomEvent, handle it in a parent template, and read event.detail. It also assumes you know how bubbles and composed affect propagation. Events cover one direction well: a child tells its parent that something happened. Other communication 3 min read