306,552 questions
1
vote
1
answer
27
views
How can I re-render a parent div element when its @if child content changes?
I have a tooltip element floating above the cursor. The size of the tooltip is obviously dependent on its content. I also need the tooltip to be completely visible inside the viewport, thus I set the ...
1
vote
1
answer
46
views
How to have dynamic schemas for signal forms?
In order to simplify form management in my apps, I have created a form component:
export type MyFormModel = Record<string, number|string>;
export type MyFormFields = MyFormField[];
export type ...
Best practices
0
votes
2
replies
34
views
Best method for loading a new page based on the value of an API response: Call API before or after landing
for some background we are in Angular 20 & using a java-based server for the API.
The client has a use case where they will view a table of URLs matched with data about (an) entity. When they ...
0
votes
1
answer
63
views
Angular does not retrieve request data [closed]
I created an Angular address book to learn how to do CRUD operations, but I think it's not retrieving the data in the request. The idea is to list the contacts using the GET method, as shown below. ...
2
votes
1
answer
55
views
rxResource stuck in loading state on non-HTTP errors
I'm trying to use Angular's rxResource to handle HTTP requests, mainly for the purpose of better ergonomics in the display by utilizing rxResource's hasValue() , error and isLoading().
While it works ...
1
vote
0
answers
97
views
Angular onChange programmatically triggered does not work
I have a component with an input and some extra and if I edit the input field and leave it by tabbing or clicking outside my change work however if I call onChange via code then nothing happens. Here ...
Advice
0
votes
3
replies
80
views
Angular application has two files main.ts and index.html
angular application has two files Main.ts and index.html which one to use.i recently encountered a tutorial called w3schools.com where it contained two files Main.ts and Index.html.can you suggest ...
0
votes
0
answers
43
views
Angular Web Worker error after using Module Federation: importScripts not supported
I’m using Angular with ngx-build-plus and Webpack Module Federation.
I have a Web Worker like this:
const worker = new Worker(new URL('./model.worker.ts', import.meta.url));
Inside the worker, I ...
4
votes
2
answers
144
views
SVG circle appears briefly at (0,0) before animating to correct position — how to fix?
I have an SVG with a blinking circle used as a loading animation. The circle is positioned at a fixed coordinate using cx and cy:
<circle cx="316" cy="59.5" r="7" fill=...
Best practices
1
vote
2
replies
89
views
React to Angular Signal without using signal state
I'm getting back into Angular for the first time since v8, and have been really liking using signals as a cleaner alternative to RxJS.
The one thing that appears to be missing is the Signal equivalent ...
-2
votes
0
answers
128
views
Hot Reloading in Angular 20
If I change something inside my application, for example content in HTML file, the browser is not reloading. Instead I manually have to press F5.
package.json
"dependencies": {
"@...
2
votes
2
answers
104
views
Is manually calling ngOnChanges the only way to configure a host directive like NgxMaskDirective with dynamic inputs?
I'm building a reusable mask directive in Angular 21 that wraps NgxMaskDirective as a host directive. The goal is to support named masks for common Brazilian document and formatting patterns (CPF, ...
-3
votes
1
answer
63
views
Redux and interception task integration in my Angular 21 project [closed]
In my Angular 21 project, I am facing an integration issue between Redux state management and the HTTP interceptor pipeline, where the expected synchronization of authentication data (such as JWT ...
Tooling
0
votes
5
replies
65
views
Profiling Angular Build Timings
I need to profile what is going on inside my ng build to get an idea of where the bottlenecks are.
I've already generated the stats.json and viewed it with the esbuild bundle analyzer. However, I'm ...
0
votes
3
answers
148
views
Angular Material: "'imports' must be an array of components, directives, pipes, or NgModules"
I'm following the Angular Material documentation. https://material.angular.dev/guide/getting-started
When using MatSlideToggle in a standalone component I get this error:
'imports' must be an array ...