Angular SSR and Non-Destructive Hydration
summary
Angular 17 makes SSR first-class: running an Express server with server/main.server and app.server.config produced fully rendered HTML and cached Pokémon API responses with zero extra HTTP requests when provideClientHydration is enabled; turning that line off shows many requests and visible flicker. Setup uses ng add @angular/ssr and the CommonEngine render/bootstrap flow. Claims: faster LCP/CLS and better SEO. Caveats: increased complexity, window/document and storage must be guarded, some libs break, and ngSkipHydration is a suggested workaround.
AI-written summary · about
chapters (11)
- 0:00Introduction and setup
- 1:11What is server-side rendering
- 2:33Angular SSR evolution
- 3:37SSR project structure
- 5:54Verifying SSR locally
- 6:56Non-destructive hydration explained
- 8:21Disabling hydration demo
- 9:50SSR and hydration benefits
- 11:17SSR challenges and limitations
- 13:45When to use SSR
- 15:13Future of Angular SSR
