I have a form, and this form includes a field with two buttons +/- next to it, so the user can add or remove fields of this kind (up to five).
I have a var count
in the typescript to keep track of how many fields of this kind I have.
And depending on this number, I need to display the same part of the form as many times as there are fields, and dynamically.
How can I do this?
I can't find a way in Angular to repeat the same HTML block depending on a variable, and I can't code all the blocks and use ngIf as the HTML block is huge.