Skip to content
Back to skills

Angular Ssr

ASecurity

Define server rendering behavior in `app.routes.server.ts` with a `ServerRoute[]`. Import `RenderMode` from `@angular/ssr` and assign a mode to each path: ```ts import { RenderMode, ServerRoute } from '@angular/ssr'; export const serverRoutes: ServerRoute[] = [ // Static HTML generated at build time. { path: 'blog/:slug', renderMode: RenderMode.Prerender }, // HTML generated on every request. { path: 'feed', renderMode: RenderMode.Server }, // No server rendering; the browser bootstraps the S...

  • 584 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 5, 2026
developmentangulardocumentation

Works with

  • cli

Security analysis

A100/100

Pro scans all 18 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add HoangNguyen0403/agent-skills-standard --skill angular-ssr --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Angular Ssr?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Angular Ssr
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hoangnguyen0403-angular-ssr-42f40753/badge)](https://www.skillsdirectory.com/skills/hoangnguyen0403-angular-ssr-42f40753)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
Define server rendering behavior in `app.routes.server.ts` with a `ServerRoute[]`. Import `RenderMode` from `@angular/ssr` and assign a mode to each path:

```ts
import { RenderMode, ServerRoute } from '@angular/ssr';

export const serverRoutes: ServerRoute[] = [
  // Static HTML generated at build time.
  { path: 'blog/:slug', renderMode: RenderMode.Prerender },

  // HTML generated on every request.
  { path: 'feed', renderMode: RenderMode.Server },

  // No server rendering; the browser bootstraps the SPA.
  { path: 'dashboard', renderMode: RenderMode.Client },
];
```

Use `RenderMode.Prerender` for stable public content such as blogs, documentation, and marketing pages. Parameterized prerender routes also need a way to enumerate their build-time parameters when the project’s SSR setup requires it. Use `RenderMode.Server` for content that must be rendered per request, such as a public feed whose data changes frequently. Use `RenderMode.Client` for authenticated or otherwise browser-only pages, such as a user dashboard, so private request state is not rendered on the server.

The route file controls the server-side mode; the normal client route configuration still defines navigation. Keep browser-only code guarded even on server-rendered routes.

Files in this skill

  • eval-1.baseline.md2.4 KB
  • eval-1.with-skill.md1.4 KB
  • eval-2.baseline.md2.5 KB
  • eval-2.with-skill.md1.2 KB
  • eval-3.baseline.md2.9 KB
  • eval-3.with-skill.md1.7 KB
  • eval-4.baseline.md2 KB
  • eval-4.with-skill.md1.5 KB
  • eval-5.baseline.md2.3 KB
  • eval-5.with-skill.md1.2 KB
  • eval-6.baseline.md2 KB
  • eval-6.with-skill.md1.3 KB
  • trigger-1.md130 B
  • trigger-2.md116 B
  • trigger-3.md121 B
  • trigger-4.md121 B
  • trigger-5.md109 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.