I can pass value in following way
template:
<td formArrayName="itemnameS">
<div *ngFor="let itemname of itemnameS.controls; let i=index">
<input [formControlName]="i" placeholder="Item Name">
</div>
component.ts:
form = new FormGroup({
itemnameS: new FormArray([
new FormControl('Gloves'),
new FormControl('Gauze'),
new FormControl('Needles'),
]),
quantitieS: new FormArray([
new FormControl(''),
]),
});
Could please let me know how it is possible for drop down list as follows:
<select formArrayName="itemnameS">
<option *ngFor="let itemname of itemnameS.controls; let i=index" >
{{ ?? }}
</option>
</select>
Should look like as bellow:
