Let's say that I have 2 arrays
arraynames['Dog', 'Cat', 'Donkey', 'Bird'];
nrofanimals['10','15', '20', '25'];
These two arrays is defined right now for simplicity but in reality can be changed to other values and so on. The only constrain is that both of the arrays must have the same size. What I want is that I want to create a formcontrol for the amount of animals for each name. What I mean is I want in my localhost:4200 to show a mat-form-field with mat-label "Dog" with mat-input "10", and another mat-form-field with mat-label "Cat" with mat-input "15" and so on. How can I do that? Keep in mind that I give these two arrays as example only. In my case the arrays will be populated by the user so I cannot have predefined arrays. Thanks in advance.