Skip to main content
2 votes
1 answer
103 views

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 ...
Slaven Tomac's user avatar
  • 1,572
1 vote
1 answer
69 views

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 ...
Tom S's user avatar
  • 695
Best practices
1 vote
3 replies
90 views

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&...
Mat's user avatar
  • 147
1 vote
3 answers
47 views

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....
Horacio García Magallanes's user avatar
0 votes
2 answers
75 views

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) ...
aljaž aljaž's user avatar
1 vote
1 answer
62 views

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":...
Dennis's user avatar
  • 11
1 vote
0 answers
78 views

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 ...
Asad Koths's user avatar
1 vote
1 answer
45 views

Let's assume you have the following code: $mySignal = signal<number | undefined>(1) @if ($mySignal()) { <foo [item]="$mySignal()"></foo> } I got: Type 'number | ...
Raphaël Balet's user avatar
1 vote
1 answer
156 views

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 ...
Peter T.'s user avatar
  • 3,397