12 questions from the last 7 days
1
vote
3
answers
73
views
Signal doesn't update when creating a new array of objects
Why doesn't my .set(...) method update the signal when the array is constructed with the spread operator?
What I have is product editor, that features an input of type file, with a preview generator.
...
2
votes
1
answer
40
views
Issue in Angular Material version 21 - animation not working
I used Angular version 21 with Material version 21:
<mat-form-field appearance="outline">
<mat-label>Outline form field</mat-label>
<input matInput placeholder="...
Best practices
1
vote
3
replies
43
views
Any Best Practice Setup Form in Angular 18-20?
I’m currently working on an Angular project and trying to figure out the best way to set up forms in Angular 18–20.
Right now I’m using Reactive Forms, but I’ve seen some discussions about the ...
1
vote
1
answer
54
views
Navbar in Angular not loading pages
I've got a nav bar in my Angular app. But when I click on the different navigational elements it does not reload the page to the other content on the navbar.
I think it is the routerLink= part.
I am ...
1
vote
1
answer
41
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
91
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
37
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
64
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
60
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
1
answer
104
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
47
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 ...