306,576 questions
0
votes
0
answers
29
views
LaunchDialogService modal auto closes when I call reloadActiveCart from ActivecCartService in Spartacus
I have a hybris B2B application running on the latest version of Spartacus. I am using the LaunchDialogService dialog popup to show some information. If I use the reloadActiveCart(), the dialog auto ...
Advice
0
votes
1
replies
59
views
Comparison of React and Angular for Modern Web Development (2026)
Which framework is better for web development in 2026: React or Angular? I would like to know which one is more recommended in terms of performance, scalability, and ease of use for modern web ...
2
votes
0
answers
90
views
How to make Angular app wait for the config (provider) to be loaded via AJAX?
The code in app.module.ts is like so:
export function ConfigFactoryInitialize(configService: AppSettingsService): () => Promise<AppSettings> {
return () => configService.loadAsync();
}
...
Best practices
1
vote
1
replies
50
views
Should I use null or undefined as a default starting value for my signal?
Basically given the following context, what is the best practice?
signal<MyCustomType | null>(null)
signal<MyCustomType | undefined>(undefined)
According to Null vs. Undefined :
...
1
vote
0
answers
69
views
Duplicate function implementation in [plugin angular-compiler]
I'm on a fresh install of an angular project and I'm trying to ng serve it after npm i in the folder. I get this error straight up:
X [ERROR] TS2393: Duplicate function implementation. [plugin angular-...
1
vote
0
answers
65
views
Form.io (Angular / ASP.NET Zero) dropdown (Choices.js) not showing selected value until clicked
Problem
This happens specifically in wizard multi-tab forms where same field exists across tabs.
I am using Form.io in an ASP.NET Zero Angular project with a wizard (multi-tab form).
A dropdown field (...
0
votes
0
answers
103
views
Angular Change Detection w/ Signals
First things first - I can't post any code examples as it's proprietary stuff.
Now to the problem: I'm using Angular 16 and Signals for change detection. Change detection is working in ngOnInit, but ...
Best practices
1
vote
3
replies
119
views
Why is field injection discouraged in Spring, while it is encouraged in Angular?
In both Spring and Angular, there are two common ways to inject dependencies:
Constructor injection
Field-style injection (@Autowired in Spring, inject() in Angular)
In Spring, constructor injection ...
0
votes
1
answer
68
views
Angular SSR + cpanel + Node.js: UnhandledPromiseRejectionWarning: SyntaxError: Unexpected token '??='
I have a new Angular SSR project with this specs:
ts.config:
{
"compileOnSave": false,
"compilerOptions": {
"strict": true,
"noImplicitOverride": ...
1
vote
1
answer
65
views
HugeRTE dropdowns appearing behind Angular Material Dialog after v21 migration
I have recently migrated my project from Angular 17 to 21. I have several instances where i have a dialog (from Angular Material) with a text editor from library @hugerte/hugerte-angular. After ...
2
votes
1
answer
65
views
Chrome DevTools source file not focusing when breakpoint hits in Angular 19 with Webpack 4.47.0
Environment:
- Angular Version: 19.2.6
- Angular CLI: 19.2.7
- Chrome Version: 146.0.7680.165
- Node: 20.17.0
- OS: Windows 10 x64
- Webpack: 4.47.0
Problem:
When debugging Angular 19 project in ...
2
votes
1
answer
109
views
Update a signal value for a specific unit test without affecting others
I have a signal that's been injected from a service and I want to test a scenario when the value has a specific property set.
Here's how the spec is defined:
describe('MyComponent', () => {
let ...
Advice
1
vote
4
replies
231
views
How relevant is Angular in 2026 compared to React, and does learning both help my resume?
My instructor recently asked me to learn Angular, but my last project was built with React. I’m a junior web developer and I’m trying to understand how relevant Angular is in today’s frontend job ...
Best practices
1
vote
2
replies
43
views
EMP created in service now on ADA issue , but the main problem seeming to be the version of my angular
We are using angular version 15. As part of our internal UI modules for styling from the client side itself, according to those versions of those modules there was an ADA issue.
The ADA issue is about ...
0
votes
0
answers
77
views
Keycloak JS session lost on page refresh (F5) behind Nginx reverse proxy - Keycloak 26 (Quarkus)
I'm facing a persistent issue where my Angular application loses its Keycloak session every time the user refreshes the page (F5). I am using Keycloak 26.5.2 (Quarkus) behind an Nginx reverse proxy ...
0
votes
1
answer
68
views
How to set dynamic canonical tag for each route in Angular (without SSR)?
I am working on an Angular application with multiple routes (e.g., /, /about, /contact), and I want to set a dynamic canonical tag for each route for SEO purposes.
Currently, I tried updating the ...
0
votes
1
answer
63
views
papaparse.min.js: Maximum call stack size exceeded
When updating to Angular 20.3.18 I got following error:
./node_modules/papaparse/papaparse.min.js - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/tools/babel/...
2
votes
1
answer
72
views
How to show serverside errors in Angular signal forms and Angular material?
We want to show serverside validation errors in the clientside Angular signal forms in combination with Angular material.
We have installed the following packages (package.json):
{
[...]
"...
0
votes
1
answer
87
views
How can I configure an Angular application hosted in Firebase to correctly handle the Google auth handler URL?
I have an Angular application hosted in Firebase, and I am currently using Google as a sign-in provider. The actual authentication logic works fine when I use the default Firebase authDomain (https://...
2
votes
1
answer
109
views
Angular 21 animate.leave confusion
I am trying to get the Angular Enter and Leave animations that have been introduced with v20 to work. I am using Angular v21.2.5. I have tested on Firefox 148 and Edge 146, both Windows 11.
I am ...
0
votes
0
answers
100
views
How can I properly configure Form.io <form-builder>?
What I did so far:
I created a fresh Angular 20 project
I installed Form.io related dependencies
I installed FontAwesome 4 dependency (and updated angular.json)
I changed following files
// app....
Tooling
0
votes
4
replies
148
views
Best way to store accessToken and refreshToken in cookies
I’m currently using cookies for authentication in a .NET 9 backend with an Angular 20 frontend. Right now, I store both the accessToken and refreshToken directly in cookies.
I’m trying to improve the ...
2
votes
2
answers
104
views
Google Places Autocomplete Widget not appearing when using Angular Material Dialog
I recently upgraded to Angular v21 and Googe Places Autocomplete New widget.
When typing in address the options are hidden away, they activate overflow on the mat dialog content isntead of being ...
1
vote
1
answer
68
views
Reset Angular Signal Form validation messages after submitting
I have a problem with the validation messages.
I'm using bootstrap for the entire application, and I have a form for adding devices that is displayed through a bootstrap modal. All works fine, the ...
0
votes
1
answer
128
views
How can I resolve this problem with PrimeNG's p-table pTemplate="rowexpansion"? The table rows don’t expand
I have a problem. pTemplate="rowexpansion" for p-table doesn't work, because maybe my approach is different from the PrimeNG documentation.
For expanding, I want to use p-button's (click) ...
0
votes
1
answer
356
views
Angular 21, Undici 7.22.0 CVE resolvable only through downgrade?
Since last week, undici 7.22.0 has a CVE, see https://npmx.dev/package/undici/v/7.22.0 which appears to be only resolvable by downgrading angular/build to 20.3.21 from 21.2.2.
That breaks a lot in my ...
1
vote
1
answer
99
views
How to merge two streams of observable results
Angular service methods:
getDetails<T>(date: string) Observable<typeA<T>> {
return this.myService.getMyDetails(date);
}
getFullYearDetails(id: number, year: number): Observable(...
1
vote
1
answer
93
views
Angular: Element implicitly has an 'any' type because expression of type 'string' can't be used to index type
I know there are plenty of post asking support for this error, but I wasn't able to find one that is close to my situation.
I'm migrating an old application from angular 6.1.10 and typescript 2.9.2 to ...
Best practices
1
vote
6
replies
129
views
How to prevent client-side manipulation of a numeric value sent from frontend to backend without making an API call on every change?
I have a numeric value that increments on the client-side based on user actions in the browser.
At certain checkpoints I send this value to my Spring Boot backend (Angular frontend). The backend uses ...
Advice
1
vote
1
replies
72
views
New Component is not displayed in StackBlitz online compiler
I have been able to create the code in my local machine using Visual Studio Code. In that case I am using Angular 15. The project is already having app.component.ts, app.component.html. But here in ...
2
votes
1
answer
107
views
How to show multiple tooltip with arrow mark in Angular 18
I am trying to show multiple tooltip using ngx-boostrap in Angular. But it is not working. Arrow mark also not working properly for each tooltip info.
ng-template using for the tooltip content. How to ...
3
votes
2
answers
128
views
How to close Bootstrap info using click event in Angular 18
I am trying to show info message when we click on the info button. When I mouse-over the button, the info message is showing. I want to show it only if I click the info button - not on mouse-over.
...
0
votes
1
answer
128
views
Cannot install Angular 21 on Windows 10
For some reason I can only install Angular 19.0.7 on my WIndows machine. I'm using Windows 10 Version 22H2 (OS Build 19045.6466).
No matter what I do, I keep getting Angular 19.0.7. How can I remedy ...
0
votes
1
answer
76
views
VS2026 Angular/ASP.Net launch configuration without debugging
I've used the Angular/ASP.Net templates in the past with Visual Studio and they've worked reasonably well. Now I've upgraded to VS2026 and am using the latest node.js and angular cli. For the life of ...
1
vote
1
answer
133
views
Angular Signal Forms: computed() / linkedSignal triggers infinitely after recreating form with runInInjectionContext
Background
Angular's signal form API (e.g. from libraries like @angular-signal-forms) requires an injection context to be created, which means it can only be initialized during component/service ...
2
votes
1
answer
75
views
How to vi.mock the ResizeObserver used within our custom ResizeObserver Directive
In our nx/Angular 21 environment, we have developed a custom ResizeObserverDirective (which uses the standard ResizeObserver under the hood).
In our tests, we are having trouble mocking it using vi.fn(...
0
votes
1
answer
46
views
angular-datatable pagination hover effect
So i am using angular-datatable 18.0.0 the issue is i am trying to remove the hover effect from the dt pagination button
<div class="layout-container">
<div class="text-end&...
0
votes
1
answer
52
views
Redirect old URLS with SEO to new app. Angular + Symfony
I'm having a situation where there is an existing website. It's going to get replaced by a new version made from scratch but I want to use old URL's which will exist for a while to preserve SEO score ...
2
votes
2
answers
129
views
Adding default queryParams in Angular 21
Before Angular 21, it was possible to add default queryParams like this, to avoid putting them in every link in our application:
@Directive({
selector: "[myRouterLink]",
standalone: ...
1
vote
1
answer
103
views
Getting NG0100 error after changing Angular version and component to standalone
I am quite new to Angular, I have read the docs but I don't understand why I'm getting this behaviour in my context. I simplified my component to this:
Parent component HTML:
<my-component [data]=&...
0
votes
1
answer
102
views
Jenkins Running in Docker deploy Angular app to Nginx [closed]
I have a Docker compose file with a few services. Two of these services is a Jenkins server and the other is an Nginx server. All services including the two in question run on a docker network but in ...
0
votes
1
answer
87
views
How to run Angular tests with vitest in band (fileParallelism false)
My Angular tests are passing locally, but failing in the CI. I think it could be due to the fact that in the CI, they run in band, while locally it's in parallel, but I can't find a way to run it ...
0
votes
1
answer
129
views
CDK Virtual Scrolling with Flexible Width [closed]
I want to use a cdk-virtual-scroll-viewport with a list of many items. This list will be used in various places, and some items will have more text than others. I want to set a min-width and max-width,...
0
votes
3
answers
126
views
Avoid initial request on rxResource creation?
When creating an angular rxjs interop using rxResource, an initial call to my http resource is made on creation. Is there a way to prevent this?
2
votes
1
answer
135
views
How to get type checking on NgTemplateOutlet let- variable from Child Component
In below diagram you can see type checking is working correctly for the signal object, but not for the let object, even though both of them are of same type-
Example on stack blitz- https://...
2
votes
0
answers
56
views
Monaco knowing about .d.ts files?
[email protected] allowed the following code
monaco.languages.typescript.typescriptDefaults.addExtraLib(
rxjsIndex,
'file:///node_modules/rxjs/index.d.ts'
)
Thats not possible anymore in ...
4
votes
1
answer
577
views
Angular 21.2.0 SSR: ng serve --host 0.0.0.0 not working after update to version- ^21.2.0
It starts but when I try to visit it from browser, it gives error-
ERROR: Bad Request ("http://localhost:4200/").
URL with hostname "localhost" is not allowed.
For more information,...
Advice
3
votes
3
replies
132
views
Handling HTTP call side effects with Angular Signals
I have an Angular app and I'm trying to modernize with Signals. I'm having some trouble understanding how to handle the side effects of an http call, namely, what would happen in the next and error ...
2
votes
3
answers
126
views
How can I bind the ng-select items to data injected into a MAT_DIALOG_DATA in Angular 21?
We're upgrading an Angular application from 16 to 21. As part of the upgrade we're running into an issue updating some of our forms that use the [ng-select](https://www.npmjs.com/package/@ng-select/ng-...
Best practices
0
votes
1
replies
143
views
PrimeNG vs NG-ZORRO comparison
PrimeNG and NG-ZORRO as UI Library, which is better for large enterprise grade Angular application? Where customization will be easy, less pain and all features will be available.
I feel PrimeNG ...