18 questions from the last 7 days
2
votes
2
answers
60
views
How to do a http request for user details everytime the userID signal value changes?
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 ...
1
vote
1
answer
44
views
How to implement a strict Content Security Policy with nonce using Apache and Angular (20.3) SSR?
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 ...
0
votes
0
answers
47
views
nginx reverse proxy not re-resolving dns after servers restarting
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.
...
-2
votes
0
answers
25
views
How to code a sidenav like angular.dev using Angular material [closed]
I am trying to code a sidenav just like the official angular.dev sidenav. For instance when a user clicks on the Reference link a second sidenav is opened containing the sub menus of Reference.
When ...
-4
votes
0
answers
44
views
How to use Saga blue theme in primeng in angular version >=18 [closed]
I am migrating a large-scale Angular application that uses PrimeNG from Angular 17 to Angular 18.
Up to Angular 17, we were using a compatible PrimeNG version where the resources folder existed inside ...
0
votes
0
answers
71
views
How to correctly override / augment a type from an npm library using TypeScript module augmentation? [closed]
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:
<...
2
votes
1
answer
61
views
NG0201: No provider found for `InjectionToken @ngrx/store Root Store Provider`
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": {
...
4
votes
1
answer
124
views
Object is possibly 'undefined' when using optional chaining with control flow
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, ...
3
votes
1
answer
71
views
How to properly augment TypeScript module types without overriding other exports?
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 ...
0
votes
1
answer
45
views
How to make a listing dynamic inside of 2 loops in Angular
<ng-container *ngFor="let grup of secili.grupList; let grupIndex = index">
<div class="pb-2">
<div class="col-12 pt-0 border-1" style="...
1
vote
0
answers
68
views
Implementing a Chrome extension using Angular 21 and TypeScript [duplicate]
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 ...
3
votes
1
answer
55
views
Angular Signals: effect() error when used in afterNextRender
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 ...
1
vote
0
answers
46
views
Unable to debug test
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 ...
0
votes
1
answer
72
views
Angular - API call made twice
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 { ...
1
vote
0
answers
58
views
Angular Vitest not working in Test Explorer - Need to call TestBed.initTestEnvironment() first
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, ...