What problem does it solve?
Provides a structured approach to add server-side rendering, hydration, and prerendering to Angular v20+ projects so pages render quickly for users and search engines while avoiding hydration mismatches and browser-only runtime errors.
Core Features & Use Cases
- SSR Setup: Guide to add @angular/ssr, create server bootstrap files, and update angular.json for server and browser builds.
- Hydration Strategies: Instructions for default hydration, incremental hydration triggers, and event replay to capture pre-hydration interactions.
- Prerendering & Caching: Techniques to prerender static routes, generate dynamic prerender params, use TransferState for HTTP caching, and configure HTTP/CDN caching headers.
- Browser-only Compatibility: Patterns for platform detection, safe injection of window/localStorage, and using afterNextRender to run DOM-only code.
Quick Start
Add SSR to your Angular v20+ app, configure prerender routes and enable client hydration with event replay for interactive components.