306,491 questions
Advice
0
votes
0
replies
35
views
Darkmode for ng-zorro components
how do you guys change theme of your ng-zorro components? Like for darkmode and lightmode switch?
Currently I'm using AI to change the style of the components but this does not seem very efficient and ...
0
votes
0
answers
67
views
After changing from CSR to SSR with Ionic Angular app, styles do not apply to components any more
I added SSR/SSG to my existing CSR Ionic Angular app (for my website/webapp, not my Capacitor native app), styles do not appear for the ion-header any more:
Expected styles:
The component code:
<...
0
votes
0
answers
44
views
Angular: An error occurred while prerendering route
I have an Angular v21 app that I've configured to use SSR, and it is failing on certain prerendered routes while trying to build, with unclear errors. I've looked around and tried different ...
-1
votes
0
answers
54
views
Unit tests fail with module not found error, but VS Code can find the pathing
I'm upgrading from Angular 20 to 21.
All of my unit tests are failing, with a mix of "Cannot find module" @angular/core/testing, @angular/common/http/testing, or @angular/common/http/testing....
Best practices
0
votes
2
replies
87
views
Rate limiting for 1 API key, used by 2 users
I am an intern doing a graduate degree in programming.
The company "employing" me asked of me to make an application for e-invoicing. This application makes use of an API with a rate limit (...
2
votes
1
answer
113
views
Using Intl.DurationFormat in Angular 21 app
I generated an Angular app via Angular CI with latest v21. When I add
const formatter = new Intl.DurationFormat('en', { style: 'narrow' });
in TypeScript code and "npm run start" the ...
-1
votes
1
answer
86
views
Vitest Angular 21 configuration in WebStorm 2026
I have an Angular workspace with many projects. I want to test a project with vitest. It works with
ng test project1
But I want to use the Vitest runner from WebStorm, not the npm runner. How do I ...
Best practices
1
vote
1
replies
74
views
How to sync Angular signals with AG Grid rowData without resetting unsaved in-grid changes?
I have an Angular 21 component using the signals API with AG Grid. The component loads a productNoteDetail object from a route resolver, and the grid displays the note's lines. The signal chain looks ...
Advice
0
votes
0
replies
67
views
Apache ProxyPass for SPA download URLs — request from email link hits backend without auth header and 401s
Setup
Migrated from mod_auth_openidc to SPA CIDP using angular-auth-oidc-client
Angular SPA served by Apache. Backend is internal (not publicly reachable); Apache proxies /api/* to it.
Backend ...
Advice
1
vote
4
replies
166
views
How to understand this line of HTML?
Why are there square brackets around [ngClass] and [attr.data-testid]?
What does the value of [ngClass] indicate? For example, what is the || operator doing in there, and the empty string ''?
Where ...
Best practices
3
votes
2
replies
118
views
Better using enum or type or maybe constant object in Angular / TypeScript?
Whats better in angular project right now?
Because i really confused right now
export enum UserRole {
ADMIN = 'ADMIN',
USER = 'USER',
GUEST = 'GUEST',
}
export type UserRole = 'ADMIN' | 'USER' |...
1
vote
1
answer
142
views
How do I prevent Angular material select to open upon pressing the enter key?
I have a form within a mat-dialog and I'd like the dialog to "submit" upon pressing the enter key given it is valid, i.e. close and pass the form's value to the dialog's afterClose promise.
...
Best practices
1
vote
5
replies
118
views
Semantic versioning for internal npm package
We have:
Main project X (Angular app)
Helper package P (pure JavaScript internal package)
Package P is hosted on our private npm registry and consumed by project X through package.json.
Our releases ...
-1
votes
1
answer
145
views
Why I can't see the the data after I move to transactions subpage?
Let's say I have 2 pages: first, that creates data (transaction) and second that displays the transactions in table. I also have navigation to those subpages ('/create-transaction' and '/transactions')...
2
votes
4
answers
183
views
Signal doesn't update when creating a new array of objects
Why doesn't my .set(...) method update the signal when the array is constructed with the spread operator?
What I have is product editor, that features an input of type file, with a preview generator.
...
