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
- Angular Overview, Component-Based Architecture & Platform Ecosystem
- Angular CLI, Workspace Configuration & Project Directory Layout
- Components & Component Lifecycle Hooks: OnInit, OnChanges, OnDestroy
- Templates & Data Binding: Interpolation, Property, Event & Two-Way Binding
- Built-in Directives: Structural, Attribute & Modern Control Flow (@if, @for, @switch)
Module 2: Component Communication, Inputs & Outputs
- Component Communication: @Input(), @Output() & EventEmitter
- Modern Signal Inputs, Outputs & Model Inputs (Angular 17+)
- DOM & Component Queries: @ViewChild, @ViewChildren & Content Projection
- View Encapsulation: Emulated, ShadowDOM, None & Host Styling (:host, ::ng-deep)
- Advanced Content Projection: Multi-Slot Projection & ngProjectAs
Module 3: Dependency Injection, Services & Hierarchical Injectors
- Services & Dependency Injection: @Injectable, providedIn & Singleton Patterns
- Hierarchical Injectors: ElementInjector, ModuleInjector & Resolution Modifiers
- Injection Tokens & Provider Types: useClass, useValue, useFactory & useExisting
- Modern inject() Function & Functional Composition in Angular
- Angular Signals: signal(), computed(), effect() & Fine-Grained Reactivity
Module 4: Reactive Programming with RxJS & Observables
- RxJS Observables Foundations: Streams, Subscriptions & Observer Interfaces
- RxJS Pipeable Operators: Transformation, Filtering & Combination
- Flattening Operators: switchMap, mergeMap, concatMap & exhaustMap
- Subjects & State Multicasting: Subject, BehaviorSubject, ReplaySubject & AsyncSubject
- Async Pipe & Memory Management: takeUntilDestroyed & DestroyRef
Module 5: Template-Driven & Reactive Forms
- Template-Driven Forms: ngModel, ngForm & Template Validation
- Reactive Forms: FormControl, FormGroup, FormArray & FormBuilder
- Custom Form Validators & Asynchronous Server-Side Validation
- Strictly Typed Forms (Angular 14+): Type Safety, NonNullableFormBuilder & Inference
- Form State Tracking & CSS Classes: ng-valid, ng-invalid, ng-touched, ng-dirty
Module 6: Component Routing, Navigation & Lazy Loading
- Routing Configuration: RouterModule, Routes Array, router-outlet & routerLink
- Route Parameters: ActivatedRoute, ParamMap, Query Params & withComponentInputBinding
- Child & Nested Routes: Sub-routing, Layout Outlets & Dashboard Hierarchies
- Route Guards: Functional canActivate, canDeactivate & UrlTree Redirects
- Lazy Loading & Modern @defer Blocks: Code-Splitting & Deferrable Views
Module 7: HTTP Client, Interceptors & REST APIs
- HttpClient & REST Operations: provideHttpClient, GET, POST, PUT, DELETE
- HTTP Interceptors: Functional HttpInterceptorFn, Auth Tokens & Logging
- HTTP Error Handling, HttpErrorResponse & Resilient Retry Policies
- Modern withFetch() & Server-Side Rendering (SSR) HTTP Performance
- Upload & Download Progress Events: reportProgress & HttpEventType
Module 8: Pipes, Transformations & Internationalization
- Built-in Pipes: DatePipe, CurrencyPipe, DecimalPipe, JsonPipe & PercentPipe
- Custom Pipes: PipeTransform Interface, Pure vs Impure Performance
- Internationalization (i18n): Locales, Angular localize & Multi-Language Translation
- DatePipe Advanced Formatting, Custom Timezones & Locale Providers
- Custom Attribute Directives: ElementRef, Renderer2, @HostListener & @HostBinding
Module 9: State Management, NgRx & Signal Store
- State Management with Signals: Lightweight Service-with-a-Signal Pattern
- NgRx SignalStore: signalStore, withState, withMethods & withComputed
- Classic NgRx Store: Actions, Reducers, Selectors & Global Store Architecture
- NgRx Effects: Isolating Side Effects, API Calls & Functional createEffect
- Change Detection Strategies: Default vs OnPush & ChangeDetectorRef
Module 10: Security, Testing, SSR & Production Deployment
- Angular Security & XSS Defense: DomSanitizer, SafeHtml & Security Contexts
- Unit Testing with TestBed: ComponentFixture, Spies & Mocking Services
- Server-Side Rendering (SSR) & Non-Destructive Hydration (Angular 17+)
- Production Build Optimization: esbuild Builder, Tree-Shaking & Bundle Budgets
- 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 2Check 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
No comments:
Post a Comment
Please do not enter any spam link in the comment box.