0

I have form array like skills = new FormArray([]); and it contains values of multiple inputs, if I debug controls level of skills I will be having such data:

console.log(this.skills.controls);

one

What I'm looking for is to get those values as array and send them by my other function to back-end.

PS: my problem is not sending data to back-end but to get my array values as array.

Any idea?

4
  • What is this.skills.value? Commented Oct 5, 2020 at 10:19
  • What do you mean? Commented Oct 5, 2020 at 10:19
  • this.skills is a FormArray - so console.log(this.skills.value) and you'll have your array Commented Oct 5, 2020 at 10:20
  • @Adam yes it is array as i mentione skills = new FormArray([]); and I am testing your comment to see results. Commented Oct 5, 2020 at 10:21

1 Answer 1

2

Refer to the documentation for FormArray.

What you actually are looking for is the value property of the FormArray

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.