Skip to content
Back to skills

Angular Ssr

ASecurity

In `app.routes.server.ts`, export a `ServerRoute[]` and set `renderMode` for each route: ```ts import { RenderMode, ServerRoute } from '@angular/ssr'; export const serverRoutes: ServerRoute[] = [ { path: '', renderMode: RenderMode.Prerender }, { path: 'blog/:slug', renderMode: RenderMode.Prerender }, { path: 'feed', renderMode: RenderMode.Server }, { path: 'dashboard', renderMode: RenderMode.Client }, ]; ``` Choose the mode based on the route’s data and privacy needs: - `RenderMode.Prerender`...

  • 584 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 5, 2026
developmentangular

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-1fb67075/badge)](https://www.skillsdirectory.com/skills/hoangnguyen0403-angular-ssr-1fb67075)

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
In `app.routes.server.ts`, export a `ServerRoute[]` and set `renderMode` for each route:

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

export const serverRoutes: ServerRoute[] = [
  { path: '', renderMode: RenderMode.Prerender },
  { path: 'blog/:slug', renderMode: RenderMode.Prerender },
  { path: 'feed', renderMode: RenderMode.Server },
  { path: 'dashboard', renderMode: RenderMode.Client },
];
```

Choose the mode based on the route’s data and privacy needs:

- `RenderMode.Prerender`: generate static HTML at build time for public, cacheable pages such as marketing pages and blogs. Parameterized routes need their build-time parameters supplied by the SSR configuration.
- `RenderMode.Server`: render dynamically for every request when the HTML depends on current server-side data, such as a public feed or request-specific page.
- `RenderMode.Client`: skip SSR and let the browser bootstrap the page. This is the appropriate default for authenticated dashboards and other pages whose content must not be rendered into a server response.

The server route table does not replace the normal client `Routes` definition; it selects how the corresponding paths are rendered by the SSR server. Browser-only code still needs `afterNextRender()` or a `PLATFORM_ID`/`isPlatformBrowser()` guard.

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.