angular-ssr

Implement server-side rendering and hydration for Angular applications with @angular/ssr.

Updated Nov 20, 2025
One-click install
npx skills add https://github.com/bluehands/Carbon-Aware-Scheduler --skill angular-ssr-bluehands
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: angular-ssr
Source: https://github.com/bluehands/Carbon-Aware-Scheduler/tree/main/source/frontend/.agents/skills/angular-ssr
Command: npx skills add https://github.com/bluehands/Carbon-Aware-Scheduler --skill angular-ssr-bluehands

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the implementation of Server-Side Rendering (SSR) and hydration in Angular applications, improving performance, SEO, and user experience.

Core Features & Use Cases

  • SSR Setup: Guides through adding @angular/ssr to new or existing projects.
  • Hydration Strategies: Demonstrates default, incremental, and event-replay hydration.
  • Prerendering: Explains static and dynamic route prerendering with getPrerenderParams.
  • Browser-Only Code: Provides patterns for safely executing code in the browser environment.
  • SEO Optimization: Covers meta tag management and route-based SEO with resolvers.
  • Use Case: Enhance your Angular e-commerce site's SEO and initial load performance by implementing SSR and prerendering product pages.

Quick Start

Add server-side rendering to your Angular project by running ng add @angular/ssr in your terminal.

Frequently Asked Questions about angular-ssr

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

FAQPage Schema
How do I add server-side rendering to an existing Angular application?

Add server-side rendering to your Angular application by running the `ng add @angular/ssr` command in your terminal. This integrates the `@angular/ssr` package and configures the necessary files for SSR and hydration setup.

What hydration strategies are available in Angular SSR?

Angular SSR supports default, incremental, and event-replay hydration strategies. These approaches manage how the server-rendered HTML is upgraded to a fully interactive client-side application while preventing UI flickering.

How does prerendering work for dynamic routes in Angular?

Prerendering dynamic routes in Angular uses the `getPrerenderParams` function to generate static HTML at build time. This improves initial load performance and SEO optimization without requiring server execution for each request.

Can I safely execute browser-only code in an Angular SSR application?

Yes, Angular SSR provides specific patterns for safely executing browser-only code. These patterns prevent server-side errors by ensuring browser-specific logic only runs in the client environment after hydration.

How do I manage SEO and meta tags with Angular server-side rendering?

Manage SEO and meta tags in Angular SSR by using route-based SEO patterns with resolvers. This approach ensures meta tags are correctly populated on the server before the HTML is sent to the client.