> angular-ssr

Hydration, TransferState, and Prerendering standards. Use when implementing Angular Universal SSR, hydration, or static prerendering. (triggers: **/*.server.ts, server.ts, hydration, transferState, afterNextRender, isPlatformServer)

fetch
$curl "https://skillshub.wtf/HoangNguyen0403/agent-skills-standard/angular-ssr?format=md"
SKILL.mdangular-ssr

SSR (Server-Side Rendering)

Priority: P2 (MEDIUM)

Principles

  • Hydration: Enable Client Hydration in app.config.ts.
  • Platform Checks: Use afterNextRender or afterRender for browser-only code (e.g., accessing window).
  • TransferState: Use makeStateKey and TransferState to prevent double-fetching data on client.

Guidelines

  • Browser Objects: Never access window, document, or localStorage directly in component logic. Implement abstractions or use afterNextRender.
  • Prerendering: Use SSG for static pages (Marketing, Blogs).

References

🚫 Anti-Patterns

  • Do NOT use standard patterns if specific project rules exist.
  • Do NOT ignore error handling or edge cases.

┌ stats

installs/wk0
░░░░░░░░░░
github stars341
██████████
first seenMar 17, 2026
└────────────

┌ repo

HoangNguyen0403/agent-skills-standard
by HoangNguyen0403
└────────────

┌ tags

└────────────