I have a reactive form within Angular 4+ where I have multiple check boxes
like so:
Now a user can select as many of the checkboxes as possible. So that the output of this form is an array of selected check boxes like so:
[
"I have a bike",
"I have a nothing",
"I have a test"
]
I have no idea how to handle this in reactive forms
. Please note I'm using the following:
import {FormGroup, FormBuilder, Validators} from "@angular/forms";
What I want:
How can I push checked
values within a reactive form array before I send it to the DB.
How can this be achieved in reactive forms?