609 questions
0 votes
2 answers
103 views
How can I implement a FormArray of FormGroups?
I have a Reactive Form in an Angular 21 application, and the form requires an array of a certain sub-form. (In my case the sub-form(s) define "filters" on a search.) The documentation on ...
2 votes
2 answers
87 views
Unable to show/get date values from formarray.controls
I am developing a timesheet form page in Angular 20. I am using formGroup, FormArray and FormControl classes. I am facing issues in retrieving and displaying the date values which I am pushing into ...
1 vote
1 answer
76 views
How to add item below the current item through button click of Angular Formarray
Like it says, I want to add an item to the middle of a FormArray. So, I have a FormArray and every FormArray item has a button to add a new FormArray item. However, it currently always adds it to ...
1 vote
1 answer
508 views
How to use PrimeNG Autocomplete with multiple selection in a FormArray?
I'm working on an Angular project where I need to implement a form that includes a FormArray with multiple FormControl instances, each using PrimeNG's Autocomplete component with multiple selection ...
0 votes
1 answer
28 views
Using FormArray and FormGroups I can't get the selected value of a select list
I'm working on a solution where I have a table grid that allow users to add and remove items from the table. Inside of each row are select columns that represent states, cities and mlb teams. I'm ...
1 vote
1 answer
67 views
Value is undefined in formArray
I have form array and for some reason I dont see any value in my app-input component. if I define simple formGroup contorl and pass to app-input I can see value. But in formarray happnes something ...
0 votes
1 answer
347 views
How to bind a formarray of form groups from parent to child component in Angular?
Need help from anyone who has worked on angular reactive forms. I have a parent component and 3 child components In the parent component, I have a form which looks like this : parent form : ...
1 vote
1 answer
144 views
Validator in nested FormGroup of FormArray does not work
I have an easy setup with Angular typed forms. In the example I built a FormGroup with two FormControls: A normal text field with required Validators A form Array that contains a FormGroup with a ...
0 votes
2 answers
175 views
Accessing Angular Typed Form Property from a FormArray in the HTML Template
I’m working on a form that manages currencies, with fields for code and label. I’m using the latest Angular features and trying to leverage typed forms. I have a FormArray inside a FormGroup, which is ...
2 votes
1 answer
89 views
<mat-form-field> component doesn't work properly with FormArray and formGroupName
The input field is not displayed with the appearance of <mat-form-field> before clicking inside when formGroupName is used with FormArray. See the example: TS: formMain = this.fb.group({ ...
2 votes
1 answer
93 views
Angular Reactive Form - ng-select in form array works remotely but fails when it's online
What I expect to achieve is selecting a product that comes with a price, adding the quantity, and then selecting another product still from that same list of products. The challenge is this works as ...
1 vote
1 answer
38 views
How to push collection of formgroup into formArray
I have a form in a steper (cdk) that works fine and I'm refactoring it to make it dynamic. My goal is to use json at the end to generate the form content. Right now I have the following code: export ...
-1 votes
1 answer
43 views
How to handle the Formarray in the Nested array in Angular
enter image description here I need to render the Dynamic fields in the Angular. But, that one is solved. Then what the issue is when i render the Nested Array or a Group it's not rendering properly. ...
2 votes
1 answer
73 views
How to get the value from dynamically added nested form in angular using valueChanges?
I am dynamically adding formControl to a parent form by iterating an array of objects & want to track the change in these dynamically added controls by adding the valueChanges to the parent form ...
1 vote
1 answer
494 views
Handling tabs data in angular reactive forms
I am developing a calendar app and want to handle three tabs such as hours timing / out of office / holiday tabs in a form. what is the efficient appraoch to group the form as there is one form and ...