306,765 questions
0
votes
0
answers
57
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
41
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
64
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
31
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
74
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
59
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
41
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, // ...
0
votes
1
answer
41
views
How to set if ag grid row is selectable
I have ag grid rows, a row can have 0 or many children. I would like to define selectable rows which are at level 0 (rows which don't have parent).
here is my column definitions :
{
columnDefs: [
...
Advice
2
votes
3
replies
83
views
@for adds whitespace nodes when preserveWhitespaces: true — is it equivalent to ng-container?
I’m testing Angular’s new control flow syntax @for with preserveWhitespaces: true, and I’m seeing different whitespace behavior compared to *ngFor.
Environment
Angular: 17+ (control flow syntax ...
-1
votes
1
answer
28
views
Angular Service Worker fetch fails after new release with CSP update (Geoapify / OpenStreetMap example)
After our latest Angular app release, which included a CSP update, some functionality broke, specifically related to map tiles.
Scenario:
The app was originally using Google Maps, which worked fine.
...
0
votes
0
answers
53
views
How to add Angular Interceptors after defining the initial interceptors?
I am maintaining ng-openapi, an open source library that generates API clients. I previously added a neat feature to enable client-specific HTTP interceptors.
The library currently uses the legacy ...
Best practices
1
vote
0
replies
49
views
NgRx Signal Store Architecture
I have some questions about ngrx signal store.
How can you let two different stores talk to each other?
Is there something similar to working with slices like in the ngrx store?
Are the new events ...
Best practices
1
vote
1
replies
64
views
Pass data to child components that are multiple levels deep
So I've got a page in my app that goes like this
<app-parent>
<app-child1>
<app-child2>
<app-child2-child1>
et cetera
And the parent contains many variables ...
1
vote
2
answers
79
views
Using NgxControlValueAccessor with [field] causes ERROR RuntimeError: NG0950: Input "field" is required but no value is available yet
I'm experimenting with Angular 21's new signal forms and tried using a component implemented with NgxControlValueAccessor with the new [field] directive. Using the custom control component with [field]...
0
votes
1
answer
113
views
Horizontal scrollbar reaches end but last table column is still not visible (Flex layout + scroll container)
I have a page layout with a fixed left panel and a right content area that contains a scrollable table.
The issue is:
The horizontal scrollbar reaches the far right
But one more column is still not ...