0Pricing
Angular Academy · Lesson

Setting Up Angular SSR

Add SSR with the Angular CLI.

Adding SSR

The fastest way to enable SSR is the schematic ng add @angular/ssr. It wires up the server build, an Express-based server, and hydration for you.

// terminal
// ng add @angular/ssr

New Projects

When creating a new app you can opt in directly with the SSR flag, so the project starts SSR-ready.

// ng new my-app --ssr

All lessons in this course

  1. Why Server-Side Rendering
  2. Setting Up Angular SSR
  3. Server Routes and Rendering Modes
  4. Transferring State to the Client
← Back to Angular Academy