I have a list of dynamic checkboxes using keyvalue pipe that returns objects rather than just array of selected IDs.
can anyone help pls, I need the form to submit just an array of selected user IDs.
https://stackblitz.com/edit/angular-ciaxgj
EDIT here's the log of a similar form with a multi-select (countries): console log
I need users (checkboxes) to return an array like countries (multi-select) as in the log above.
console.log(Object.keys(this.userForm.value.users));