A
A
Alena Khrenovskaya2018-08-27 13:53:42
JavaScript
Alena Khrenovskaya, 2018-08-27 13:53:42

Duplicate fields Template driven form, how to separate data?

There is a field in which a number is entered (as needed) and, for example, the user entered 3 - after which 3 blocks with the same fields appeared in the form:
Block 1:
Name Date Description
Block 2:
Name Date Description
Block 3:
Name Date Description
Via ngModel the complexity with the fact that the entered data is duplicated for all fields, how to correctly beat all this, especially since the data for each block forms a model (entity) that will be sent to the database at the next stage -_- I hope the essence of the problem is clear.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question