Angular

Intermediate · Roadmap · 62 lessons · 14 groups

Components, templates, dependency injection, signals, RxJS, forms, routing, HTTP, state management, testing, and the production concerns of shipping an Angular application — the framework itself, not the TypeScript it's written in (`typescript`) or the JavaScript underneath that (`javascript`). Sixty-two lessons.

0%

Not started

Nothing saved yet. Progress is kept in this browser until you sign in.

Start the path

Fundamentals · 4

Components and templates · 6

Control flow, directives, and pipes · 5

Component communication · 4

Dependency injection and services · 4

Signals and change detection · 4

RxJS in Angular · 5

Forms · 4

Routing and navigation · 5

HTTP and data · 4

State management · 3

Testing · 4

Performance and rendering · 4

Production concerns and ecosystem · 6

01What Angular is, and how it's put togetherAngular's philosophy as a full platform, its core packages, and where it sits next to React and Vue.Intermediate · 16 min02The CLI, project anatomy, and standalone bootstrappingWhat `ng new` actually generates, and how a modern Angular app boots without an `app.module.ts`.Intermediate · 11 min03NgModules — the legacy architectureWhat NgModule did, why Angular moved away from it, and how to read a codebase that still uses it.Intermediate · 10 min04Angular versioning and staying currentHow Angular's release cadence and semantic versioning work, and how `ng update` moves a real app across major versions.Intermediate · 8 min01Component basics and the @Component decoratorWhat the @Component decorator actually does, and the metadata every component carries.Intermediate · 16 min02Interpolation and property, attribute, class, and style bindingThe four ways an Angular template connects to component data, and when to reach for each one.Intermediate · 15 min03Event binding and template reference variablesHow a template reacts to user input, and how to grab a handle on an element without leaving the template.Intermediate · 18 min04Component lifecycle hooksThe fixed sequence of moments every component passes through, and which hook to use for each one.Intermediate · 10 min05View encapsulation and component stylingHow Angular scopes a component's CSS by default, the three encapsulation modes, and why `::ng-deep` is a trap.Intermediate · 13 min06ng-template, ng-container, and ngTemplateOutletThe three building blocks behind every conditional and reusable template fragment in Angular.Intermediate · 16 min01Built-in control flow: @if, @for, and @switchAngular's native control-flow blocks, and why they replaced the structural directives they look nothing like.Intermediate · 14 min02Legacy structural directives: *ngIf, *ngFor, *ngSwitchHow to read the asterisk-prefixed directive syntax you'll meet in any Angular codebase older than the control-flow blocks.Intermediate · 8 min03Attribute directives and building your own`ngClass`/`ngStyle` as attribute directives, and how to write a custom one with host bindings and listeners.Intermediate · 12 min04Built-in and custom pipesTransforming data at the point it's displayed, and the pure/impure distinction that decides how often a pipe reruns.Intermediate · 7 min05The async pipeSubscribing to an observable or promise directly in a template, with Angular handling the unsubscription.Intermediate · 7 min01Inputs and outputs: @Input, @Output, and EventEmitterHow a parent passes data down to a child component, and how a child reports back up.Intermediate · 16 min02Signal inputs, model inputs, and outputsThe input(), model(), and output() functions that replace @Input()/@Output() with signal-based component APIs.Intermediate · 7 min03Content projection with ng-contentLetting a parent supply markup a child component renders inside its own template — single- and multi-slot.Intermediate · 26 min04ViewChild, ContentChild, and signal queriesReaching into a component's own template or projected content from its TypeScript code.Intermediate · 9 min01Dependency injection fundamentals and the injector treeWhat problem dependency injection solves, and the two ways to ask Angular's injector for something.Intermediate · 8 min02Providers and injection tokensThe four ways to tell an injector what to hand over, and InjectionToken for the things that aren't classes.Intermediate · 19 min03Hierarchical and scoped injectorsWhy providedIn: 'root' isn't the only option, and how a component-level provider creates its own, scoped instance.Intermediate · 20 min04Services as shared stateUsing a singleton service as the place two unrelated components meet, instead of routing everything through inputs and outputs.Intermediate · 8 min01Signals, computed values, and effectsThe signal(), computed(), and effect() primitives Angular's reactivity model is now built around.Intermediate · 10 min02Change detection and zone.jsHow Angular has historically known when to re-check the DOM — and why that required patching the browser's own async APIs.Intermediate · 13 min03OnPush change detectionOpting a component out of the default full-tree check, and the immutability discipline that makes it safe.Intermediate · 17 min04Zoneless AngularRunning Angular without zone.js, now that signals give the framework a precise way to know what changed.Intermediate · 16 min01Observable fundamentals for AngularWhat an observable actually is, and where Angular itself already relies on them before you write a line of RxJS.Intermediate · 5 min02Common RxJS operators in Angularmap, switchMap, and debounceTime through a real Angular use case: a typeahead search box.Intermediate · 15 min03Subjects and multicastingSubject and BehaviorSubject as both an observable and an observer at once — the building block of a hand-rolled event bus or state service.Intermediate · 28 min04Subscription management and takeUntilDestroyedWhy a manual .subscribe() call is a liability the moment you forget to clean it up, and the tools that remove the need to remember.Intermediate · 11 min05Interop between signals and observablestoSignal() and toObservable() bridge Angular's two reactive systems — and when to reach for which one in the first place.Intermediate · 7 min01Template-driven formsBuilding a form with ngModel directly in the template — and when that's genuinely the better choice over reactive forms.Intermediate · 18 min02Reactive forms fundamentalsFormControl, FormGroup, and FormBuilder — constructing a form's structure explicitly in TypeScript instead of implicitly in the template.Intermediate · 10 min03Form validation: built-in and custom validators, and FormArrayAttaching validators to a reactive form, writing your own, catching cross-field errors, and handling a dynamic list of controls.Intermediate · 11 min04Typed reactive formsStrictly typed FormGroup<T> — and what untyped reactive forms were quietly letting slip past the compiler.Intermediate · 10 min01Router fundamentals and route configurationThe Routes array, RouterOutlet, RouterLink, and provideRouter — the minimum setup every routed Angular app needs.Intermediate · 28 min02Route parameters and query parametersReading :id-style route segments and ?key=value query strings through ActivatedRoute — snapshot versus reactive.Intermediate · 18 min03Child routes and layout compositionNesting routes inside a parent's own layout, and using named outlets to render more than one routed region at once.Intermediate · 7 min04Route guards and resolversFunctional guards that control whether a navigation is allowed, and resolvers that fetch data before a route activates.Intermediate · 24 min05Lazy loading routes and componentsloadComponent and loadChildren — shipping a smaller initial bundle by only downloading a route's code when it's actually visited.Intermediate · 9 min01HttpClient fundamentalsprovideHttpClient, typed requests, and the observables HttpClient hands back for every call.Intermediate · 39 min02HTTP interceptorsIntercepting every outgoing request and incoming response to handle auth tokens, logging, and errors in one place.Intermediate · 16 min03Error handling and retry strategiescatchError and retry for HTTP calls, and centralizing error handling in one place instead of per call site.Intermediate · 17 min04Caching HTTP datashareReplay for avoiding duplicate requests, and why that's a different, narrower problem than full state-management caching.Intermediate · 9 min01Component state and services as stateWhen local component state is enough, and when lifting it into a shared service — with signals as the container — is the right next step.Intermediate · 14 min02Introduction to NgRxActions, reducers, selectors, and effects — the Redux pattern NgRx brings to Angular, and why it trades simplicity for structure.Intermediate · 37 min03The NgRx SignalStore@ngrx/signals' SignalStore — NgRx's own structure, rebuilt around signals instead of the classic actions-and-reducers pipeline.Intermediate · 30 min01Unit testing components with TestBedConstructing a component in isolation for testing, querying its rendered DOM, and manually triggering change detection.Intermediate · 8 min02Testing services and HTTPTesting an injectable service in isolation, and HttpTestingController for asserting on and responding to HTTP calls without a real network.Intermediate · 13 min03Test runners: from Karma to VitestAngular's shift away from Karma, through a Jest-era waypoint, to Vitest as the current default application test builder.Intermediate · 16 min04End-to-end testingTesting a real, running Angular app from the outside with Playwright or Cypress — and what unit tests were never meant to cover.Intermediate · 29 min01track and list rendering performanceWhy @for requires a track expression, and *ngFor's trackBy before it — both answer the same identity question.Intermediate · 9 min02Deferrable views: the @defer blockLazily rendering a chunk of template based on a trigger, with built-in placeholder, loading, and error states.Intermediate · 28 min03Server-side rendering and hydrationRendering an Angular app's first paint on the server, and handing off to the client without throwing that work away.Intermediate · 13 min04Bundle size and build optimizationThe esbuild/Vite-based application builder, how lazy loading shapes your bundles, and reading what's actually in them.Intermediate · 15 min01Angular animationsThe @angular/animations package's trigger/state/transition model, and the newer native-CSS alternative to it.Intermediate · 7 min02InternationalizationAngular's built-in $localize/locale-build i18n pipeline, versus runtime translation libraries like ngx-translate and Transloco.Intermediate · 18 min03Accessibility in AngularAngular's built-in ARIA directives and the CDK's a11y utilities — making a dynamic UI usable without a mouse or without sight.Intermediate · 9 min04Security: XSS, sanitization, and CSPAngular's built-in DOM sanitization, the bypassSecurityTrust escape hatches, and Content-Security-Policy considerations for a real app.Intermediate · 12 min05Angular Material and component librariesWhat Material and the CDK each actually provide, and the real decision between adopting a component library and building your own.Intermediate · 7 min06PWA service workers and Nx monoreposTurning an Angular app into an installable, offline-capable PWA with @angular/pwa, and organizing several Angular projects in one Nx workspace.Intermediate · 12 min

Fundamentals

4 lessons

  1. 01 / 04What Angular is, and how it's put togetherAngular's philosophy as a full platform, its core packages, and where it sits next to React and Vue.16 min
  2. 02 / 04The CLI, project anatomy, and standalone bootstrappingWhat `ng new` actually generates, and how a modern Angular app boots without an `app.module.ts`.11 min
  3. 03 / 04NgModules — the legacy architectureWhat NgModule did, why Angular moved away from it, and how to read a codebase that still uses it.10 min
  4. 04 / 04Angular versioning and staying currentHow Angular's release cadence and semantic versioning work, and how `ng update` moves a real app across major versions.8 min

Components and templates

6 lessons

  1. 01 / 06Component basics and the @Component decoratorWhat the @Component decorator actually does, and the metadata every component carries.16 min
  2. 02 / 06Interpolation and property, attribute, class, and style bindingThe four ways an Angular template connects to component data, and when to reach for each one.15 min
  3. 03 / 06Event binding and template reference variablesHow a template reacts to user input, and how to grab a handle on an element without leaving the template.18 min
  4. 04 / 06Component lifecycle hooksThe fixed sequence of moments every component passes through, and which hook to use for each one.10 min
  5. 05 / 06View encapsulation and component stylingHow Angular scopes a component's CSS by default, the three encapsulation modes, and why `::ng-deep` is a trap.13 min
  6. 06 / 06ng-template, ng-container, and ngTemplateOutletThe three building blocks behind every conditional and reusable template fragment in Angular.16 min

Control flow, directives, and pipes

5 lessons

  1. 01 / 05Built-in control flow: @if, @for, and @switchAngular's native control-flow blocks, and why they replaced the structural directives they look nothing like.14 min
  2. 02 / 05Legacy structural directives: *ngIf, *ngFor, *ngSwitchHow to read the asterisk-prefixed directive syntax you'll meet in any Angular codebase older than the control-flow blocks.8 min
  3. 03 / 05Attribute directives and building your own`ngClass`/`ngStyle` as attribute directives, and how to write a custom one with host bindings and listeners.12 min
  4. 04 / 05Built-in and custom pipesTransforming data at the point it's displayed, and the pure/impure distinction that decides how often a pipe reruns.7 min
  5. 05 / 05The async pipeSubscribing to an observable or promise directly in a template, with Angular handling the unsubscription.7 min

Component communication

4 lessons

  1. 01 / 04Inputs and outputs: @Input, @Output, and EventEmitterHow a parent passes data down to a child component, and how a child reports back up.16 min
  2. 02 / 04Signal inputs, model inputs, and outputsThe input(), model(), and output() functions that replace @Input()/@Output() with signal-based component APIs.7 min
  3. 03 / 04Content projection with ng-contentLetting a parent supply markup a child component renders inside its own template — single- and multi-slot.26 min
  4. 04 / 04ViewChild, ContentChild, and signal queriesReaching into a component's own template or projected content from its TypeScript code.9 min

Dependency injection and services

4 lessons

  1. 01 / 04Dependency injection fundamentals and the injector treeWhat problem dependency injection solves, and the two ways to ask Angular's injector for something.8 min
  2. 02 / 04Providers and injection tokensThe four ways to tell an injector what to hand over, and InjectionToken for the things that aren't classes.19 min
  3. 03 / 04Hierarchical and scoped injectorsWhy providedIn: 'root' isn't the only option, and how a component-level provider creates its own, scoped instance.20 min
  4. 04 / 04Services as shared stateUsing a singleton service as the place two unrelated components meet, instead of routing everything through inputs and outputs.8 min

Signals and change detection

4 lessons

  1. 01 / 04Signals, computed values, and effectsThe signal(), computed(), and effect() primitives Angular's reactivity model is now built around.10 min
  2. 02 / 04Change detection and zone.jsHow Angular has historically known when to re-check the DOM — and why that required patching the browser's own async APIs.13 min
  3. 03 / 04OnPush change detectionOpting a component out of the default full-tree check, and the immutability discipline that makes it safe.17 min
  4. 04 / 04Zoneless AngularRunning Angular without zone.js, now that signals give the framework a precise way to know what changed.16 min

RxJS in Angular

5 lessons

  1. 01 / 05Observable fundamentals for AngularWhat an observable actually is, and where Angular itself already relies on them before you write a line of RxJS.5 min
  2. 02 / 05Common RxJS operators in Angularmap, switchMap, and debounceTime through a real Angular use case: a typeahead search box.15 min
  3. 03 / 05Subjects and multicastingSubject and BehaviorSubject as both an observable and an observer at once — the building block of a hand-rolled event bus or state service.28 min
  4. 04 / 05Subscription management and takeUntilDestroyedWhy a manual .subscribe() call is a liability the moment you forget to clean it up, and the tools that remove the need to remember.11 min
  5. 05 / 05Interop between signals and observablestoSignal() and toObservable() bridge Angular's two reactive systems — and when to reach for which one in the first place.7 min

Forms

4 lessons

  1. 01 / 04Template-driven formsBuilding a form with ngModel directly in the template — and when that's genuinely the better choice over reactive forms.18 min
  2. 02 / 04Reactive forms fundamentalsFormControl, FormGroup, and FormBuilder — constructing a form's structure explicitly in TypeScript instead of implicitly in the template.10 min
  3. 03 / 04Form validation: built-in and custom validators, and FormArrayAttaching validators to a reactive form, writing your own, catching cross-field errors, and handling a dynamic list of controls.11 min
  4. 04 / 04Typed reactive formsStrictly typed FormGroup<T> — and what untyped reactive forms were quietly letting slip past the compiler.10 min

Routing and navigation

5 lessons

  1. 01 / 05Router fundamentals and route configurationThe Routes array, RouterOutlet, RouterLink, and provideRouter — the minimum setup every routed Angular app needs.28 min
  2. 02 / 05Route parameters and query parametersReading :id-style route segments and ?key=value query strings through ActivatedRoute — snapshot versus reactive.18 min
  3. 03 / 05Child routes and layout compositionNesting routes inside a parent's own layout, and using named outlets to render more than one routed region at once.7 min
  4. 04 / 05Route guards and resolversFunctional guards that control whether a navigation is allowed, and resolvers that fetch data before a route activates.24 min
  5. 05 / 05Lazy loading routes and componentsloadComponent and loadChildren — shipping a smaller initial bundle by only downloading a route's code when it's actually visited.9 min

HTTP and data

4 lessons

  1. 01 / 04HttpClient fundamentalsprovideHttpClient, typed requests, and the observables HttpClient hands back for every call.39 min
  2. 02 / 04HTTP interceptorsIntercepting every outgoing request and incoming response to handle auth tokens, logging, and errors in one place.16 min
  3. 03 / 04Error handling and retry strategiescatchError and retry for HTTP calls, and centralizing error handling in one place instead of per call site.17 min
  4. 04 / 04Caching HTTP datashareReplay for avoiding duplicate requests, and why that's a different, narrower problem than full state-management caching.9 min

State management

3 lessons

  1. 01 / 03Component state and services as stateWhen local component state is enough, and when lifting it into a shared service — with signals as the container — is the right next step.14 min
  2. 02 / 03Introduction to NgRxActions, reducers, selectors, and effects — the Redux pattern NgRx brings to Angular, and why it trades simplicity for structure.37 min
  3. 03 / 03The NgRx SignalStore@ngrx/signals' SignalStore — NgRx's own structure, rebuilt around signals instead of the classic actions-and-reducers pipeline.30 min

Testing

4 lessons

  1. 01 / 04Unit testing components with TestBedConstructing a component in isolation for testing, querying its rendered DOM, and manually triggering change detection.8 min
  2. 02 / 04Testing services and HTTPTesting an injectable service in isolation, and HttpTestingController for asserting on and responding to HTTP calls without a real network.13 min
  3. 03 / 04Test runners: from Karma to VitestAngular's shift away from Karma, through a Jest-era waypoint, to Vitest as the current default application test builder.16 min
  4. 04 / 04End-to-end testingTesting a real, running Angular app from the outside with Playwright or Cypress — and what unit tests were never meant to cover.29 min

Performance and rendering

4 lessons

  1. 01 / 04track and list rendering performanceWhy @for requires a track expression, and *ngFor's trackBy before it — both answer the same identity question.9 min
  2. 02 / 04Deferrable views: the @defer blockLazily rendering a chunk of template based on a trigger, with built-in placeholder, loading, and error states.28 min
  3. 03 / 04Server-side rendering and hydrationRendering an Angular app's first paint on the server, and handing off to the client without throwing that work away.13 min
  4. 04 / 04Bundle size and build optimizationThe esbuild/Vite-based application builder, how lazy loading shapes your bundles, and reading what's actually in them.15 min

Production concerns and ecosystem

6 lessons

  1. 01 / 06Angular animationsThe @angular/animations package's trigger/state/transition model, and the newer native-CSS alternative to it.7 min
  2. 02 / 06InternationalizationAngular's built-in $localize/locale-build i18n pipeline, versus runtime translation libraries like ngx-translate and Transloco.18 min
  3. 03 / 06Accessibility in AngularAngular's built-in ARIA directives and the CDK's a11y utilities — making a dynamic UI usable without a mouse or without sight.9 min
  4. 04 / 06Security: XSS, sanitization, and CSPAngular's built-in DOM sanitization, the bypassSecurityTrust escape hatches, and Content-Security-Policy considerations for a real app.12 min
  5. 05 / 06Angular Material and component librariesWhat Material and the CDK each actually provide, and the real decision between adopting a component library and building your own.7 min
  6. 06 / 06PWA service workers and Nx monoreposTurning an Angular app into an installable, offline-capable PWA with @angular/pwa, and organizing several Angular projects in one Nx workspace.12 min
Esc
↑↓ navigate↵ open? shortcuts

Keyboard shortcuts

Press Esc to close

Anywhere

⌘K
Search and commands
/
Search
?
This sheet
Esc
Close

Reading a lesson

J
Next lesson
K
Previous lesson
B
Bookmark