306,770 questions
0
votes
0
answers
20
views
Angular Not Loading the Updated Data After An API Call
so, i am working on a simple angular app where i fetch data from an API then load it in the html template.
import { Component, inject, OnInit } from '@angular/core';
import { ReclamationService } ...
0
votes
0
answers
27
views
Interceptor failing to ingest localStorage variable and pass it to service
Problem
I have a token object stored in localStorage:
{
accessToken: string
idToken: string
refreshToken: string
}
When I resfresh the page I have the following interceptor built:
import {...
-1
votes
1
answer
53
views
Angular version 18.2.14 has a bug on @Directive standalone compiling
Looks like Angular version 18.2.14 has a bug on @Directive standalone compiling
the directive:
import { Directive, ElementRef, HostListener } from '@angular/core';
@Directive({
selector: '[...
0
votes
0
answers
36
views
Can I use node version X for building Angular Frontend and node version Y for building backend and serving the web app?
We have a Angular Web app which has a node js backend. We are using currently node version Y.
For CICD we are using a Jenkins server. Jenkins server and web server are both using node version Y. ...
0
votes
1
answer
54
views
Padding button looks even on browser inspector, but not on phone
Every time I write a primeng button for some reason in the browser inspector (even when it´s on phone view) the padding (or text) of the button looks centered:
However in my phone Google Chrome does ...
0
votes
1
answer
43
views
How to debug and identify if the component or a specific part of the component was rerendered?
In Angular, assuming I have this component where automationId is updated every new content while txt is updated less frequent. During those times that txt is NOT updated or the value remains as the ...
0
votes
0
answers
33
views
Primeng input control expands pass its container
It seems that Primeng input control has a fixed size (width) under the hood. I tried to limit the width in order to fit in a grid layout but failed: the control is wider than its container. For a ...
1
vote
2
answers
58
views
How to fit Accordion Panels to the screen?
I am using the PrimeNG Accordion component where the first panel contains a form and the second and third panel contain tables. See an example here:
https://stackblitz.com/edit/wawhkkem-rwy91iox
<...
0
votes
0
answers
67
views
Angular CdkTree expand all parent nodes
i have a use case where I have a MatTree<Item> where Item contains a key
property. Given a specific key , i would like to expand the MatTreeNode and its parent recursively till root. Currently, ...
1
vote
0
answers
46
views
ng-bootstrap Datepicker throws NG0203 takeUntilDestroyed() error on Angular 20
Problem
When clicking on an ngbDatepicker input to open the datepicker popup, I get the following runtime error:
ERROR RuntimeError: NG0203: takeUntilDestroyed() can only be used within an injection ...
1
vote
0
answers
77
views
How to send HttpOnly cookies (refresh token) to ASP.NET Core backend on localhost?
I’m setting an HttpOnly cookie in the browser every time a user logs in or signs up on my website. This cookie contains a refresh token that I use to get a new access token.
The problem is that the ...
Best practices
1
vote
1
replies
33
views
Angular afterNextRender which phase to use with ResizeObserver
I am using a ResizeObserver to monitor an element's dimensions. When the size changes, I update a Signal (or state variable) that is bound to a CSS Variable in my template. This CSS variable then ...
1
vote
1
answer
93
views
How to install the latest Tailwind (v4) in an Ionic/Angular project
We'd like to install the latest Tailwind (v4) into our Ionic/Angular project so we can use its utility-first approach.
I've tried the guides mentioned here:
Angular guide
Capawesome guide
Workaround ...
2
votes
2
answers
81
views
ng build crashes with heap corruption (exit code -1073740940) on Node.js 24 during Angular library compilation
After migrating to Angular CLI 20.3.6 and Node.js 24.0.0 When building an Angular library using ng build --configuration production library, the build process crashes sporadically with exit code -...
2
votes
1
answer
47
views
ngOnDestroy is not working inside ComponentPortal
I am creating a ComponentPortal for use in an overlay like so.
const myPortal = new ComponentPortal(MyComponent, null, Injector.create({
name: 'MyPortalInjector',
parent: this.injector, // ...