Loading topic
@Component decorator, its selector, template, and the class behind it. You should also be comfortable with ES modules (import/export) and running an Angular CLI project with ng serve.4 min readVideo lecture{{ }} syntax, what a template expression can and cannot contain, how values become text, and the mistakes that tend to cause bugs.4 min readVideo lecture(click)="..." so that values have a way to change.4 min read<input> element in the page is a JavaScript object with properties such as value and disabled.5 min read[property]. You should also know how browser events work in general: the event object, target, bubbling, and preventDefault().4 min read@if, @for, and @switch, handle both jobs directly in the template syntax. This chapter assumes you can already write a standalone compo4 min readinput() and output() functions, their opti5 min readcolspan, data-* values, CSS classes, and individual style declarations. Angular has dedicated binding forms for each of these. This chapter covers how they work, how 4 min read<ng-content>,4 min readDate, a number, a string) and the template decides how it looks.4 min read@if/@for control flow from earlier chapters. It also assumes you can write a standalone component with signals. Template reference variables let one part of a template point at another part, such as an elem4 min readselector, a template, and a class, and that you have used content projection with ng-content. You will learn where component styles live, how Angular keeps them from leaking4 min read@if and @for, template reference variables, and contentChild queries from earlier chapters. All examples use standalone components (Angular 19+) with signal-based APIs.4 min read<app-toggle>. So far, your bindings have targeted elements inside a component's own template. This chapter shows how a component or directive can set properties, attrib4 min readinput() and output(), and use lifecycle hooks such as ngOnInit. It explains how Angular decides when to re-evaluate template bindings, what the OnPush strategy changes, and why signals make most change 4 min readimports array, the built-in control flow blocks (@if, @for), template reference variables, and reading signals in templates. You should also know what a JavaScript bundle is and roughly how the Angular CLI builds one.4 min readVideo lecture4 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 Standalone Components and Composing Them with imports (opens in a new tab)
Published YouTube: watch Displaying Data with Interpolation and Template Expressions (opens in a new tab)
Published YouTube: watch Lazy-Loading Template Sections with @defer (opens in a new tab)