306,448 questions
Score of 2
1 answer
79 views
HttpClient updates component state, but template doesn't refresh after API response
I'm experiencing a strange issue with Angular 21. My HttpClient request succeeds, the component state is updated correctly, but the template still displays wrong.
Environment:
Angular: 21.2.18
Node....
Score of 2
1 answer
76 views
In Vitest with Angular, How to fix Compilation error ''Can't bind to 'myProperty' since it isn't a known property of 'app-a' for running tests?
In vitest, I have a component AComponent which I want to write out for, for writing, but I write test-wrapper TestComponent which uses view child of AComponent in it. TestComponent has HTML template ...
Score of 0
1 answer
70 views
ng2-pdfjs-viewer - Angular 17 - doesn't display PDF - working before
This is about a previously working code for ng2-pdfjs-viewer not working now.
environment:
devl windows laptop
Angular v17.3.x
"ng2-pdfjs-viewer": "^17.0.3",
Action:
Upon clicking ...
Score of -3
0 answers
82 views
Best practice for isolated, highly-available dev/staging/production environments across 2 Angular + 1 Laravel repos [closed]
I have 3 separate repositories that make up one product:
frontend-admin (Angular)
frontend-client (Angular)
backend-api (Laravel)
I need to deploy all three across dev, staging, and production, ...
Score of -4
0 answers
133 views
Type 'unknown[]' is not assignable to type 'string[]' Type 'unknown' is not assignable to type 'string'.ts(2322) [closed]
I have a code snippet like this:
const phases: string[] = [...new Set(this.data.map((item:any) => {return item.CURRENT_LC_PHASE; }))];
But this gives me the following errors:
Type 'unknown[]' is ...
Score of 3
2 answers
139 views
Angular pipe not reacting to observable/signal?
@Pipe({
name: 'myNumber',
pure: false,//not working with true
standalone: true
})
export class VNumberPipe implements PipeTransform {
intl = inject(IntlService);
translate = ...
Score of 0
2 answers
153 views
TS7053 in a <div> where I'd like to initialize a tag with an indexed value taken from the environment <app-carte [id] = "environment[region + '_id']>"
From an environment.ts that contains values such as:
// Métropole
metropole_id: 'carte_metropole',
metropole_nom: 'Métropole',
metropole_couche_layer: 'GEOGRAPHICALGRIDSYSTEMS.PLANIGNV2',
...
Score of 1
1 answer
124 views
Angular content projection not working as expected
I'm trying to create a component in Angular 21, that acts as a wrapper (s. here). It uses content-projection (<ng-content>), so arbitrary HTML markup and an Angular component can be injected ...
Score of 2
1 answer
85 views
Angular Component Import Error -991010 when using certain Typescript paths [closed]
This is a bit of an odd one, and I've been unable to recreate it on stackblitz.
The project has been around since Angular 8 and has been upgraded to 22. When baseUrl was dropped, we initially used ...
Score of 0
1 answer
140 views
Firebase signInWithRedirect() returns to my app, but never creates a Firebase Authentication user, while signInWithPopup() works
Firebase signInWithRedirect() returns to my app but never creates a Firebase authentication user, while signInWithPopup() works.
I'm seeing behavior that I can't explain. I have a minimal Angular ...
Best practices
1
vote
3
replies
99
views
Dynamic Signal Forms, Reactive Configuration
The angular docs have now a section for dynamic forms using signal forms: https://angular.dev/guide/forms/signals/dynamic-forms-with-json#rendering-the-form-dynamically .
There is however one thing ...
Score of 0
1 answer
129 views
Angular 22 property used before initialization
I have a service injected into a constructor, but I get an error saying property is used before initialization. I never had this issue before Angular 22.
After some research, Angular 22 does use the ...
Advice
0
votes
0
replies
70
views
Trust Pilot inapp review
Our custom element is created successfully and the Verified Review Collector script loads correctly, but the onReady callback is never invoked. Is onReady still expected to fire in the current version ...
Score of 0
1 answer
90 views
Zone.js has detected that ZoneAwarePromise Promise` has been overwritten
I've been troubleshooting the following error for over a month and I can't get it to disappear.
Error: Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.
Most ...
Score of 1
1 answer
85 views
Wrong Bootstrap CSS grid rules (col-*) in Angular 21
We have an Angular project, with SCSS files, that uses Bootstrap and NgBootstrap
I'm migrating it from Angular 13 to Angular 21, Bootstrap 5.2.3 to 5.3.8 and NgBootstrap 12 to 20.
It works mostly, ...
