9 questions from the last 30 days
2 votes
1 answer
103 views
Angular effect calling method which sets other signal
In angular, if I have an effect which calls some method which further on sets some other signal, will that effect be bind to that "other signal" or just signals called directly inside the ...
1 vote
1 answer
69 views
How to reset field, based on other fields value change?
I’m using Angular 21’s new Signal Forms. I have a search form where the user types a query, receives a paginated result list, and can move between pages. When the user changes the search phrase, I ...
Best practices
1 vote
3 replies
90 views
Angular Signals and methods in templates
It is good practice to use signals in templates and bad practice to use methods. But signals and methods? Example (using the get method from Map): userStatuses: WritableSignal<Map<string, string&...
1 vote
3 answers
47 views
Send Observable result to child component as Signal
In my code I am trying to get the result from this observable: // Runs fine obtenerOfertaPorId(id: number): Observable<Oferta> { return this.http.get<Oferta>(`${this.apiUrl}${this....
0 votes
2 answers
75 views
How to bind a form to a single object signal and keep fields in sync?
I'm trying to migrate a simple template-driven form to use Angular Signals. I’m on Angular 19 (standalone components, using FormsModule) and I would like to: Keep one object for the product (product) ...
1 vote
1 answer
62 views
Angular compile error using strict templates with @if optional chaining
I'm currently running into an issue/question about optional chaining in Angular. I'm running Angular 20, with "strictTemplates": true enabled as angularCompilerOptions and "strict":...
1 vote
0 answers
78 views
Angular @for Loop Not Updating When Signal is Truncated
Background: I am working on an Angular 20.3.10 application where I use signals for managing the state of a collection of toast messages. I have SSR and Zoneless enabled and have a web worker ...
1 vote
1 answer
45 views
Assume that a signal isn't empty when used inside an @if?
Let's assume you have the following code: $mySignal = signal<number | undefined>(1) @if ($mySignal()) { <foo [item]="$mySignal()"></foo> } I got: Type 'number | ...
1 vote
1 answer
156 views
How to provide default values for individual fields in Angular 21 Signal Forms (without UI flicker) when implementing a FormValueControl?
We're starting to look at Angular 21's new signal-based forms, but I can't find a clean way to define default values for each form field, especially when building forms for objects where multiple keys ...