Build web applications with components, dependency injection and framework services.

Before starting: TypeScript classes, functions, modules, HTML, and CSS.

Practice project: Build a typed study-planner form with validation and component tests.

Module 1: Introduction, Architecture & Angular CLI

  1. Angular Overview, Component-Based Architecture & Platform Ecosystem
  2. Angular CLI, Workspace Configuration & Project Directory Layout
  3. Components & Component Lifecycle Hooks: OnInit, OnChanges, OnDestroy
  4. Templates & Data Binding: Interpolation, Property, Event & Two-Way Binding
  5. Built-in Directives: Structural, Attribute & Modern Control Flow (@if, @for, @switch)

Module 2: Component Communication, Inputs & Outputs

  1. Component Communication: @Input(), @Output() & EventEmitter
  2. Modern Signal Inputs, Outputs & Model Inputs (Angular 17+)
  3. DOM & Component Queries: @ViewChild, @ViewChildren & Content Projection
  4. View Encapsulation: Emulated, ShadowDOM, None & Host Styling (:host, ::ng-deep)
  5. Advanced Content Projection: Multi-Slot Projection & ngProjectAs

Module 3: Dependency Injection, Services & Hierarchical Injectors

  1. Services & Dependency Injection: @Injectable, providedIn & Singleton Patterns
  2. Hierarchical Injectors: ElementInjector, ModuleInjector & Resolution Modifiers
  3. Injection Tokens & Provider Types: useClass, useValue, useFactory & useExisting
  4. Modern inject() Function & Functional Composition in Angular
  5. Angular Signals: signal(), computed(), effect() & Fine-Grained Reactivity

Module 4: Reactive Programming with RxJS & Observables

  1. RxJS Observables Foundations: Streams, Subscriptions & Observer Interfaces
  2. RxJS Pipeable Operators: Transformation, Filtering & Combination
  3. Flattening Operators: switchMap, mergeMap, concatMap & exhaustMap
  4. Subjects & State Multicasting: Subject, BehaviorSubject, ReplaySubject & AsyncSubject
  5. Async Pipe & Memory Management: takeUntilDestroyed & DestroyRef

Module 5: Template-Driven & Reactive Forms

  1. Template-Driven Forms: ngModel, ngForm & Template Validation
  2. Reactive Forms: FormControl, FormGroup, FormArray & FormBuilder
  3. Custom Form Validators & Asynchronous Server-Side Validation
  4. Strictly Typed Forms (Angular 14+): Type Safety, NonNullableFormBuilder & Inference
  5. Form State Tracking & CSS Classes: ng-valid, ng-invalid, ng-touched, ng-dirty

Module 6: Component Routing, Navigation & Lazy Loading

  1. Routing Configuration: RouterModule, Routes Array, router-outlet & routerLink
  2. Route Parameters: ActivatedRoute, ParamMap, Query Params & withComponentInputBinding
  3. Child & Nested Routes: Sub-routing, Layout Outlets & Dashboard Hierarchies
  4. Route Guards: Functional canActivate, canDeactivate & UrlTree Redirects
  5. Lazy Loading & Modern @defer Blocks: Code-Splitting & Deferrable Views

Module 7: HTTP Client, Interceptors & REST APIs

  1. HttpClient & REST Operations: provideHttpClient, GET, POST, PUT, DELETE
  2. HTTP Interceptors: Functional HttpInterceptorFn, Auth Tokens & Logging
  3. HTTP Error Handling, HttpErrorResponse & Resilient Retry Policies
  4. Modern withFetch() & Server-Side Rendering (SSR) HTTP Performance
  5. Upload & Download Progress Events: reportProgress & HttpEventType

Module 8: Pipes, Transformations & Internationalization

  1. Built-in Pipes: DatePipe, CurrencyPipe, DecimalPipe, JsonPipe & PercentPipe
  2. Custom Pipes: PipeTransform Interface, Pure vs Impure Performance
  3. Internationalization (i18n): Locales, Angular localize & Multi-Language Translation
  4. DatePipe Advanced Formatting, Custom Timezones & Locale Providers
  5. Custom Attribute Directives: ElementRef, Renderer2, @HostListener & @HostBinding

Module 9: State Management, NgRx & Signal Store

  1. State Management with Signals: Lightweight Service-with-a-Signal Pattern
  2. NgRx SignalStore: signalStore, withState, withMethods & withComputed
  3. Classic NgRx Store: Actions, Reducers, Selectors & Global Store Architecture
  4. NgRx Effects: Isolating Side Effects, API Calls & Functional createEffect
  5. Change Detection Strategies: Default vs OnPush & ChangeDetectorRef

Module 10: Security, Testing, SSR & Production Deployment

  1. Angular Security & XSS Defense: DomSanitizer, SafeHtml & Security Contexts
  2. Unit Testing with TestBed: ComponentFixture, Spies & Mocking Services
  3. Server-Side Rendering (SSR) & Non-Destructive Hydration (Angular 17+)
  4. Production Build Optimization: esbuild Builder, Tree-Shaking & Bundle Budgets
  5. Enterprise Angular Architecture: Monorepos (Nx), Core Principles & Checklist

Build and check keyboard-accessible controls

A visible control also needs a name and a predictable keyboard action. A label linked by for and id gives the input an accessible name. A native button supports keyboard activation. CSS can improve appearance, but must preserve visible focus. Client validation helps users; the server must still validate submitted data.

Any modern browser; no framework dependency

<!doctype html>
<html lang="en">
<meta charset="utf-8">
<title>Study reminder</title>
<style>
  :focus-visible { outline: 3px solid #075985; outline-offset: 3px; }
</style>
<form action="" method="get">
  <label for="topic">Topic to revise</label>
  <input id="topic" name="topic" required>
  <button type="submit">Save reminder</button>
</form>
</html>
Check the output
The page displays a labeled field and a button. Submitting a nonempty value adds topic to the URL; this example has no server-side storage.

Add help text using aria-describedby. Test keyboard use at 200% zoom and confirm that the text remains readable.

Design a React component behavior test

Test what a student using the page can observe. For a counter, the important contract is its initial value and the result of activating its button. Avoid coupling the test to private state variable names or CSS classes. The pseudocode below describes a component-test plan; it is not executable JavaScript and does not require a particular test library.

Framework-independent test plan; adapt to your component test runner

Arrange: render the counter
Assert: visible count is 0
Act: activate the button named "Add one"
Assert: visible count is 1
Act: activate it again
Assert: visible count is 2
Check the output
The behavior check passes only if each observed count matches the expected value. This is a test plan, not a runnable test file.

Add a reset button. Write the behavior contract before choosing a framework-specific component testing tool.

Open the Angular learning path on DevStudyHub · Play coding games on this blog

logoblog

No comments:

Post a Comment

Please do not enter any spam link in the comment box.