Skip to main content
4 votes
1 answer
126 views

When using Angular's new(ish) control flow, you will get Object is possibly 'undefined' errors when accessing nested object properties after checking if they are truthy with Angular's control flow, ...
Alex's user avatar
  • 1,124
4 votes
1 answer
76 views

Environment Angular 17.x Setup: The select form field has multiple enabled. The options are an array of objects - {_id, fullName, ...}. The option value is bound to _id. Also added a function for the ...
hemant's user avatar
  • 531
3 votes
1 answer
72 views

I have an Angular library that exposes a permission directive used to show/hide elements based on user permissions. The library defines a generic Permission type, but I want each application to define ...
Jon's user avatar
  • 534
3 votes
1 answer
56 views

Complete error : effect() can only be used within an injection context such as a constructor, a factory function, a field initializer, or a function used with runInInjectionContext I have a simple ...
davood beheshti's user avatar
2 votes
2 answers
64 views

I'm just getting used to performing http requests with signals in Angular 20. I'd like a http get request to be executed everytime the profileUserID signal value (which I have defined in a user ...
Sarah's user avatar
  • 2,023
2 votes
1 answer
61 views

I have a basic setup of NgRX to learn the flow. Now it gets to use the NgRX Effects, and my implementations throw error, Please review and let me know what may missed? "dependencies": { ...
Nasser's user avatar
  • 4,729
2 votes
1 answer
68 views

I have an Angular (standalone) application with a CanDeactivate guard that prevents navigation when a form is dirty. Reproduction steps: Navigate to User Management Click on a user (e.g. “Alice”). ...
Jon's user avatar
  • 534
1 vote
1 answer
46 views

I have spent the entire morning trying to implement a strict Content Security Policy (CSP) using nonces with Apache and Angular 20.3 SSR. On the Apache side, I am able to generate a nonce correctly ...
Charles LINDECKER's user avatar
1 vote
0 answers
70 views

I’m trying to implement a chrome extension using Angular21. I need to compile background script, that is written using TypeScript. For this I need to compile background script inside Angular build. I ...
Alex's user avatar
  • 207
1 vote
0 answers
47 views

I've just moved from Jasmine and Karma to Vitest in my Angular 21 frontend project. The migration went smoothly, and I now have all my tests running correctly inside a Chromium browser. Here is my ...
jon.xnkif's user avatar
1 vote
0 answers
58 views

Why is it that when I run Angular Vitest tests in the terminal is works fine: But running the same tests in the Test Explorer fails: I tried adding import { BrowserTestingModule, ...
parliament's user avatar
  • 23.2k
1 vote
0 answers
79 views

I am using Angular 19 with a Micro Frontend architecture (Project A = host, Project B = remote). Everything works perfectly inside Project B itself. However, when I load Project B from Project A, I ...
Zaid mone's user avatar
0 votes
1 answer
72 views

Can someone explain to me why this code makes an API call twice? I'm using Angular 21 with SSR activated. ngOnInit(): void { if (this.appService.platform() === 'browser') { const { ...
Raphael's user avatar
  • 777
0 votes
0 answers
52 views

we are having an issue with nginx reverse proxy, over k8s cluster We have an angular app served by nginx, acts as reverse proxy and as a web server, all API requests are being executed via the nginx. ...
Shachar297's user avatar
0 votes
0 answers
72 views

I’m trying to override a type that comes from my library that was published on npm. The library exposes a structural directive that uses a Permission type to ensure correct typing in templates: <...
Jon's user avatar
  • 534

15 30 50 per page