182 questions
0
votes
1
answer
104
views
Angular 21 SSR with app-shell and withShell
I recently implemented SSR in my Angular 21 application using:
ng add @angular/ssr
Usually, for browser rendered Angular apps, I place a small loading indicator into my app-root to reduce the time ...
0
votes
1
answer
102
views
How to send cookies from server to client during SSR (Angular 20)
I am using HttpOnly Cookies for JWT authentication in my Angular v20 app. I have SSR enabled.
During Login, the cookies are sent to the client. I have an HttpInterceptor that seems to work to forward ...
1
vote
0
answers
87
views
Angular @for Loop Not Updating When Signal is Truncated
Background:
I am working on an Angular 20.3.10 application where I use signals for managing the state of a collection of toast messages. I have SSR and Zoneless enabled and have a web worker ...
1
vote
0
answers
50
views
How to setup Angular SSR+localize with subdomain-based locale resolution
If build&deploy non-ssr localized versions as subdomains like
en.example.org
uk.example.org
fr.example.org
angular.json configuration looks like
"i18n": {
"...
1
vote
0
answers
69
views
@angular/ssr v20+ with Express: 1+ Second Event Loop Blocking After TransferState Serialization
We're experiencing a consistent 1-1.5 second delay in our Angular SSR v20.2.2 application that occurs after all Angular rendering completes but before the response is sent to the client. The delay ...
0
votes
0
answers
86
views
Is it possible to use the AngularNodeAppEngine and dynamically provide the CSP nonce to Angular?
I'm using Angular SSR (@angular/ssr) with the AngularNodeAppEngine for server-side rendering.
I\ve set up a strict Content Security Policy (CSP) that requires using nonces for inline scripts and ...
0
votes
0
answers
56
views
Angular 19 SSG: ngOnInit not executing during static generation, data not visible in initial HTML
I'm using Angular 19 with Static Site Generation (SSG) and my ngOnInit method is not executing during the build process. The API calls are only made when clients load the page in the browser, ...
1
vote
0
answers
240
views
Fix for ngx-translate Angular 20 getBrowserLang default text flash
I'm currently working on an Angular 20 project with Server-Side Rendering and the ngx-translate library.
I've already read through the ngx-translate docs and found this about fixing UI glitches when ...
2
votes
2
answers
96
views
ngClass has the wrong value while hydrating
The below [ngClass] expression doesn't insert the class name into DOM when Angular starts hydrating (only after it's finished).
<div class="document-pane" [ngClass]="{'single-view-...
1
vote
1
answer
101
views
Resource called twice in SSR Application
I'm working with a SSR Angular 20 and noticed Resource could be called twice :
Here's an example of the code:
Service:
code = signal<string | undefined>(undefined);
authCode = resource<
{ ...
0
votes
1
answer
58
views
How to configure html's lang attribute depending on the URL using angular SSR
I'm trying to migrate my Angular App to an Angular SSR for better SEO.
I need to provide the html's lang attribute depending on the route :
If the route starts with /fr, set it to fr
If the route ...
1
vote
2
answers
393
views
Angular ReferenceError: document is not defined
Note: My knowledge of JS frameworks and TS is essentially non-existent.
I'm trying to create an SPA with SSG. I have a main component I'm trying to display a webAMP in. Which needs to access document. ...
1
vote
0
answers
159
views
Can you use Ionic Angular Capacitor with Angular SSR?
I just started implementing Angular SSR with Angular Ionic Capacitor. However I am becoming skeptic if this even works, after running into some issues like:
ERROR ReferenceError: window is not defined
...
2
votes
2
answers
131
views
Angular/Supabase project will not load upon "ng serve," causing infinite rendering
I have been working on a login feature for a website I am making using Angular and Supabase.
I have two separate services, one where the Supabase client is initialized, and another where ...
2
votes
2
answers
1k
views
During the build process error related to prerendering a dynamic route (esperimento/:id)
I have an Angular project, and I'm attaching the app.routes.ts file. When I test it with ng serve, the app seems to work perfectly, but when I try to build it I always get this error:
✘ [ERROR] The '...