Skip to main content
0 votes
0 answers
35 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 ...
Stan van Heumen's user avatar
0 votes
0 answers
37 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, ...
Wierzba's user avatar
  • 11
0 votes
0 answers
122 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 ...
Bob Gravity's user avatar
2 votes
2 answers
74 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-...
Desperado's user avatar
  • 322
1 vote
1 answer
76 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< { ...
Ncls7523's user avatar
0 votes
1 answer
46 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 ...
Mattew Eon's user avatar
  • 1,815
1 vote
2 answers
257 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. ...
user30935374's user avatar
1 vote
0 answers
129 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 ...
Felix Olszewski's user avatar
2 votes
1 answer
101 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 ...
BraedenTurner22's user avatar
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 '...
Pierpaolo Croce's user avatar
1 vote
1 answer
162 views

Why are components' imports not loading in Angular 19 SSR?

I've run into a problem that my header's imports are not loaded properly in SSR. In my Angular 19 application the app.component.html includes a static <app-header> component that should exist on ...
Ivan Kusliy's user avatar
5 votes
2 answers
2k views

Angular 19 SSR: The 'detail/:id' route uses prerendering and includes parameters, but 'getPrerenderParams' is missing

I try to build Angular 19 SSR using ng build --configuration production --aot but get the following error: [ERROR] The 'detail/:id' route uses prerendering and includes parameters, but '...
Menahem Gil's user avatar
1 vote
1 answer
49 views

Why does my Socket.IO connection prevent my Angular component from reloading?

I have an Angular component that connects to a Socket.IO server. However, when I include the WebSocket connection code, my component fails to reload properly. If I comment out the Socket.IO code, ...
Hamzah Alkhateeb's user avatar
0 votes
1 answer
42 views

How to respond with 404 status on not found page on Angular?

I have a "not found" component: { path: '**', loadComponent: () => import('./pages/not-found-page.component').then( (c) => c.PageNotFoundComponent, ), } ...
Sebastián Rojas's user avatar
0 votes
0 answers
59 views

NGXS with SSR leaks user data between other users

Im using NGXS for state store in angular. While testing I had firefox logged in and launched chrome in private window. When I navigated, I saw that the ssr was flashing the other user's information ...
kewur's user avatar
  • 491

15 30 50 per page
1
2 3 4 5
12