Loading topic
@Component decorator, selector, template, and class). It also assumes you are comfortable with ES modules (import/export) and basic TypeScript.2 min readclick, input, keyup). It also builds on the interpolation and signal reading covered in the earlier chapters. Property binding sends data from the class into the template. Event binding goes the other way: it runs your code when the us2 min readcount(), and use event bindings. Angular's built-in control flow blocks let a template add, remove, and repeat elements depending on component state. You don't import anything to use them, because they are p2 min readimports array, read signals in templates, and write property and event bindings. Inputs and outputs build on those two bindings. A parent sends data down to a child through a property binding on an input. The child repor1 min read[prop]="expr"), event binding, and how to read signals in templates. Property binding sets DOM properties. Some things you want to bind are not DOM properties, though: ARIA attributes, colspan, and individual CSS classes or style declarations. Angu2 min readimports array, and pass data with input(). Inputs work well for strings and numbers. Many components need to wrap whole blocks of markup instead, such as a card, a dialog, or a panel. Content projection handles this. The parent pu2 min readimports array works. A pipe is a function you use inside a template expression to change how a value is displayed. The value in your class stays the same.2 min readvalue.2 min read@Component decorator, selector, template, and class) and basic CSS selectors. It covers how Angular keeps a component's styles from leaking out, and the mistakes that follow from that.2 min readng-content, and how to read signals in templates.2 min readviewChild queries from the previous chapter. Every component goes through a lifecycle. Angular creates it, sets its inputs, renders its template, checks it for changes, and finally destroys it. Lifecycle hoo2 min read:host selector from earlier chapters. It covers two tools. The first is a way to define a piece of markup once and render it in several places. The second lets a component set classes, attr2 min readimports array.2 min read2 chapters have a video lecture. Each plays at the top of its chapter.
Published YouTube: watch What a Component Is: Decorator, Selector, Template, and Class (opens in a new tab)
Published YouTube: watch Displaying Data with Interpolation and Template Expressions (opens in a new tab)