Skip to main content
1 vote
3 answers
37 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
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
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
155 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
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
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
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
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
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
0 votes
1 answer
103 views

I am stuck with above error. [NG8: Type 'Signal<User[]>' must have a '[Symbol.iterator]()' method that returns an iterator.] I am using ngrx/signal-store for data management with my angular app. ...
3gwebtrain's user avatar
  • 15.5k
0 votes
2 answers
116 views

Interface: export interface User { userId: number; userName: string; emailId: string; role: string; } export interface UserState { users: User[]; _users: User[]; } export const ...
3gwebtrain's user avatar
  • 15.5k
2 votes
1 answer
79 views

I created this simple component that has two inputs that both accept a string and in theory should accept undefined because they have a default value. @Component({ selector: 'app-child', imports: [...
Ruben's user avatar
  • 181
2 votes
1 answer
71 views

I'm refactoring an Angular component to use signals throughout, but I'm stuck on how to properly initialize a signal that depends on required inputs without using ngOnInit. I am trying to see in this ...
Eternal Sunshine's user avatar
1 vote
2 answers
115 views

Here's the StackBlitz showing the problem. I have a reactive form with an Email field and Send Verification Code button. When the code is sent, the Verification Code field appears, so the user can ...
AlexB's user avatar
  • 4,684
2 votes
1 answer
52 views

I am trying to generate dynamic forms based on a set of questions I receive from an API. When the app inits I will dispatch a state action that will call the mock API to get the questions and then the ...
Sam Redmond's user avatar

15 30 50 per page
1
2 3 4 5
24