Is there a way to retrieve values from an unknown number of input fields in Angular?
This is the code I am using to generate the input fields:
<form (ngSubmit)="submit()" #custom="ngModel">
<div *ngIf="let elem of arr">
<input type="text">
</div>
</form>
Any suggestions on how I can gather the input from all the input fields and store them in an array?