Loading tutorials
{propertyName} expressions in templates and with modern JavaScript classes and modules. Here you will learn how a child component declares whic6 min read@api and set it from a parent template, as covered in earlier chapters. It also assumes you know the {expression} syntax in templa5 min read@api, and set it from a parent template. It focuses on public properties that hold true or false, and on one rule from the Lightning Web Components (LWC) guidelines: a public Boolean property should defaul5 min read@api to expose a property, as covered in earlier chapters. You should also be comfortable with spread syntax and Array.prototype.map.6 min read@api to expose a public property. You should also be comfortable with spread syntax (...) and array methods such as map and sort. Earlier chapters showed that a child must not change the values it receives. Here we ap6 min read@api and a template binding. It also assumes you know that a child treats received values as read-only. Here you will apply those ideas to a list, so that one array in the parent becomes many child components.5 min read{property} expressions in a template, and read modern JavaScript (classes, spread syntax, arrow functions). It also assumes you know how to mark a field with @api and set it from a parent template.5 min read@api, bind values in a parent template, and read a basic component lifecycle. Properties cover most parent-to-child communication. Sometimes the parent needs the child to do something instead, such as move focus, reset a form, or sc5 min read@api, set it from a parent template, and render a child component. It covers one more way to give a child something to show: a slot. It also gives you rules for choosing between a property, a slot, a method, and an event.5 min read@api properties. It also assumes you are comfortable with JavaScript classes, arrow functions, and the spread syntax.6 min read@api, and bind values in a template. Each pitfall below lists the symptom, the cause, and a fix.7 min read