Learn Angular
Angular lessons, examples, and practical exercises
- Angular Introduction
Angular is a free, open-source web application framework maintained by Google and its developer community.
- Single-Page Applications
SINGLE-PAGE APPLICATION (SPA) - QUICK REVISION
- Decorators
A decorator adds metadata to a class or class member so Angular knows how to create and use it.
- Components
Build focused Angular UI blocks with a class, template, styles, inputs, outputs, and clear parent-child data flow.
- Component Lifecycle Hooks
Creation order:
- Templates
A template is HTML enhanced with Angular syntax.
- Routing
The Angular Router maps URLs to components in a single-page application.
- Services and Dependency Injection
Control whether a dependency is global or isolated to part of the component tree.
- Route Guards
Guards decide whether navigation may continue.
- Angular Signals
A signal stores a value and notifies consumers when that value changes.
- Observables, Subjects, and BehaviorSubject
OBSERVABLE, SUBJECT, AND BEHAVIORSUBJECT - QUICK REVISION
- ng-template, ng-content, and ng-container
NG-TEMPLATE, NG-CONTENT, AND NG-CONTAINER - QUICK REVISION
- Angular Forms
Angular offers three form styles:
- Selectors
Learn and revise Selectors.
- Components
Combine behavior, a template, and styles into a reusable UI unit.
- Directives
Add reusable DOM behavior without creating another visual component.
- Pipes
A pipe transforms data for display without changing the original value.
- Data Binding
Data binding connects component state with the template.
- Modules
The word "module" can mean two different things:
- Standalone Components
A standalone component does not need to be declared in an NgModule.
- trackBy List Performance
Tracking gives each list item a stable identity.
- Web Workers
A Web Worker runs CPU-intensive JavaScript on a background thread so the browser's main thread can remain responsive.
- Compiler vs Interpreter
Both compilers and interpreters turn source code into something a computer can execute.
- APP_INITIALIZER
Use provideAppInitializer() for work that must finish during application startup, such as loading external configuration.
- HTTP Interceptors
An interceptor processes HTTP requests and responses in one central place.
- Angular Project File Structure
An Angular workspace contains configuration, dependencies, source code, tests, and static files.
- Component Communication
Choose stable decorator APIs or adopt signal inputs with their v18 preview status understood.
- RxJS Mapping and Combination Operators
Use forkJoin when independent HTTP requests should run together and you need one result after all complete.
- RxJS pairwise Operator
pairwise() emits the previous and current source values as a tuple.
- OnPush Change Detection
OnPush allows Angular to skip a component subtree when it has no relevant change notification.
- Annotations
In everyday Angular discussion, "annotation" usually means metadata that describes a class.
- Angular Performance
Measure first with browser tools, Angular DevTools, and bundle analysis.
- JavaScript Basics
Angular uses TypeScript, and TypeScript is JavaScript with types.
- TypeScript Basics
TypeScript is a strongly typed superset of JavaScript maintained by Microsoft.