SSR (Server Side Rendering) Angular. Angular Universal. SSR Setup Basics

Опубликовано: 25 September 2026
на канале: Максим Гром
6,233
255

SSR allows you to get a website's layout without JavaScript enabled in the browser. This allows search engines to better index your website. 99% of the time, this approach is used when a client wants to create a sales page based on an existing SPA with authorization.

In this video, I showed how to implement SSR on an Angular project.
The source code can be downloaded here: https://github.com/MaksymGrom/angular...
I configured everything according to the official documentation.
https://angular.io/guide/universal
There's a link to a recommended article for exploring rendering options (there are more than two ;) )
https://developers.google.com/web/upd...

Join the Telegram channel :)

In the video, I showed how to solve the problem of using localStorage for SSR. Since Node JS Express doesn't have a web API, this is an error that the dumper can't fix.

To work around the issue of using localStorage, I proved that using a proxy is important. I also showed how to replace the proxy service implementation specifically for the backend using DI.

More complete information on DI in Angular can be found in this playlist:    • #1 Angular dependency injection framework....  

Thanks for watching, subscribe to the channel, and leave your comments :)

00:00 What is SRR and where to read more
2:52 Angular without SSR, SEO issues
6:06 Adding express-engine
8:37 Lifecycle on the frontend and backend
11:18 localStorage with SSR Proxy Service
20:36 Enable SSR selectively by route
25:40 Make the layout work without JS