Upon submission of this form:
let newRole = this.addForm.value
console.log(this.addForm)
The visual representation of the form can be seen in the image below: https://i.sstatic.net/NGwKz.jpg
When I use console.log(this.addForm.value)
, the output is as shown in the following image:
https://i.sstatic.net/rQXRc.jpg
I aim to only submit the permission_id, which should look like this:
value: (5) [1, 2, 3, 4, 5]
If you have any suggestions, please feel free to share them.