Repository inventory

analogjs/angular-skills

Skills indexed from this repository, with install-style signals scoped to the repo.
10 skills1K GitHub stars0 weekly installsGitHubOwner profile

Overview

This skill implements server-side rendering, hydration, and prerendering for Angular v20+ using @angular/ssr. It guides setup, render-mode configuration, hydration strategies (including incremental hydration and event replay), and patterns for making browser-only code safe on the server. Use it to add SSR to existing apps, reduce time-to-first-byte, and pre-generate static pages where appropriate.

How this skill works

The skill adds the @angular/ssr package and bootstraps a server entry that renders Angular on the server and serves client assets. It configures server routes with per-route RenderMode (Prerender, Server, Client) and supports getPrerenderParams for dynamic prerendering. Hydration is provided via provideClientHydration with options for event replay and HTTP transfer caching, while browser-only APIs are isolated with platform checks and lifecycle helpers like afterNextRender.

When to use it

  • Add SSR to improve SEO and initial render performance for public pages.
  • Use prerendering for marketing, blog, and static product pages at build time.
  • Use dynamic SSR for user-specific content or pages that require per-request data.
  • Defer hydration for heavy interactive components to improve perceived performance.
  • Make code SSR-compatible when you encounter window/document runtime errors on server builds.

Best practices

  • Define serverRoutes with explicit RenderMode per route to mix prerender, SSR, and SPA pages.
  • Use getPrerenderParams to enumerate dynamic route params and set a sensible fallback for non-prerendered paths.
  • Wrap browser-only logic with isPlatformBrowser and use afterNextRender/afterRender for DOM work.
  • Enable event replay to capture user interactions that occur before hydration finishes.
  • Use TransferState or withHttpTransferCacheOptions to avoid duplicate HTTP requests during hydration.

Example use cases

  • Add @angular/ssr to an existing Angular app to generate server HTML and hydrate on the client.
  • Prerender marketing pages and product listing pages at build time, while SSR product detail pages per request.
  • Defer hydration of comments, charts, and recommendation widgets to viewport or interaction triggers.
  • Provide a WINDOW or LOCAL_STORAGE injection token that returns null on server and the real API in the browser.
  • Deploy server bundle to a Node host that serves static browser assets and uses CommonEngine to render pages.

FAQ

Use Prerender for stable, static pages that can be built once. Use Server for pages that need per-request personalization or dynamic data.

How can I avoid hydration mismatches?

Ensure server and client render the same markup, avoid running browser-only code during server render, and use deferred hydration for components that depend on client-only state.

10 skills

angular-ssr
Backend

This skill helps Angular developers implement server-side rendering, hydration, and prerendering with v20+ so apps load faster and are SEO-friendly.

DebuggingDocsFrontendPerformance+1
angular-testing
Debugging

This skill helps Angular developers write robust unit and integration tests using Vitest or Jasmine, including signals, OnPush, and HTTP interactions.

FrontendIntegration TestsPerformanceTesting+1
angular-tooling
Cli

This skill helps you maximize Angular v20+ development efficiency by guiding project setup, code generation, building, testing, and configuration.

DebuggingProductivityScriptingTesting
angular-directives
Design

This skill helps Angular developers create reusable directives for DOM manipulation, behavior extension, and composition across components.

FrontendProductivity
angular-di
Api

This skill helps Angular developers implement and configure dependency injection with inject(), providers, and tokens to manage service lifetimes and

Code ReviewDebuggingFrontendFullstack+1
angular-component
Accessibility

This skill helps you create modern Angular standalone components using v20+ best practices, enabling signal-based inputs/outputs, OnPush, host bindings, and

DesignFrontendRefactorUx
angular-routing
Code Review

This skill helps Angular developers implement routing v20+ with lazy loading, guards, resolvers, and signal-based parameters for robust navigation.

DebuggingFrontendIntegration TestsPerformance+3
angular-http
Api

This skill helps Angular developers fetch data with signal-based resources and HttpClient, handling loading, errors, and interceptors efficiently.

DataDebuggingFrontendPerformance
angular-forms
Code Review

This skill helps you build and validate signal-based Angular forms with automatic binding and dynamic fields using the Signal Forms API.

FrontendProductScriptingTesting+1
angular-signals
Frontend

This skill helps Angular developers adopt signals for reactive state management, enabling writable, derived, and dependent state with effects.

PerformanceProductivity
More from this maintainer
Other repositories and skills published under the same GitHub owner.
Skills library
Jump back to the full directory or explore grouped topics.
Built by
VeilStrat
AI signals for GTM teams
Ā© 2026 VeilStrat. All rights reserved.All systems operational