angular-ssr

Configure server-side rendering, hydration, and prerendering for Angular v20+ applications.

595|69|Updated Jan 24, 2026
One-click install
npx skills add https://github.com/analogjs/angular-skills --skill angular-ssr-analogjs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: angular-ssr
Source: https://github.com/analogjs/angular-skills/tree/main/skills/angular-ssr
Command: npx skills add https://github.com/analogjs/angular-skills --skill angular-ssr-analogjs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill enables server-side rendering, hydration, and prerendering for Angular v20+ applications. It helps improve performance, SEO, and compatibility with browser-only APIs across SSR scenarios.

Core Features & Use Cases

  • SSR setup and hydration strategies: guidance to set up server-side rendering, configure hydration, and choose appropriate render modes.
  • Prerendering routes and dynamic SSR: techniques to prerender static routes while enabling dynamic SSR for user-specific pages.
  • Browser-only code safety: patterns to safely run browser APIs, platform checks, and progressive enhancement in SSR contexts.
  • Practical examples: end-to-end examples covering common app patterns and migration steps to SSR.

Quick Start

Run ng add @angular/ssr to enable SSR in your Angular project and follow the prompts to configure server, routes, and hydration.

Frequently Asked Questions about angular-ssr

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up server-side rendering in Angular?

Set up server-side rendering in Angular by running ng add @angular/ssr to configure the server, routes, and hydration automatically for your project.

What's the best way to handle browser-only APIs during Angular SSR?

Handle browser-only APIs during Angular SSR by using platform checks and progressive enhancement patterns to ensure code safely runs across server and client contexts.

Can I prerender static routes while using dynamic SSR for user-specific pages?

Yes, you can prerender static routes while enabling dynamic SSR for user-specific pages by applying distinct rendering techniques to different route types.

How does hydration work in Angular server-rendered applications?

Hydration in Angular server-rendered applications attaches event listeners to existing server-rendered HTML without re-rendering, improving web performance and preventing layout shift.

Does Angular v20 support server-side rendering out of the box?

Angular v20+ supports server-side rendering, hydration, and prerendering directly through the @angular/ssr package to improve SEO and web performance.