An open API service indexing awesome lists of open source software.

https://github.com/dinbtechit/angular-ssr


https://github.com/dinbtechit/angular-ssr

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# Angular 17 SSR - Weird Issue

Related to https://github.com/angular/angular-cli/issues/26323

Example of TransferState from Server (server.ts) to Client (Angular Component)

> Had to set preRender is set to `false` in angular.json

1. ng build
2. npm run serve:ssr:angular-ssr

value set on server in the provider:

![img_1.png](img_1.png)

is transferred to client.

![img.png](img.png)

However, when you set preRender to `true`. The server stops transferring value to client.