S
S
Sorax152020-08-10 21:18:24
Angular
Sorax15, 2020-08-10 21:18:24

How to collect all data from a form into one Angular array?

There is a form in which there are a lot of check boxes and 5 input type range how can I make sure that all the data that is pressed on the button gets into the array?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Shvedov, 2020-08-11
@mmmaaak

If Reactive Forms is used, then form.value, where form is a FormGroup or FormArray, or if there are disabled fields, for example, then form.getRawValue() can be called

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question