D
D
Deodatuss2016-03-31 10:20:39
JavaScript
Deodatuss, 2016-03-31 10:20:39

What is the best way to validate large dynamic forms in Angular2?

In general, there is a form with a table in it, which has input and texparea cells in it. In the header of the table, everything is required to be filled in, as well as in the first column. Added to all this is the ability to create and delete rows and columns. And to all this you need to fasten validation.
So far, the only thing I have come up with is to generate an object with properties of the "[row][column][inputType]" type through the FormBuilder, but, damn it, it will need to be generated constantly when the number of columns and rows changes, somehow it does not smile at me. Is there any other way? Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex, 2016-03-31
@streetflush

So what's the problem I don't understand?
ngForm with ng-control generation when column or row is added

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question