this.formgroup = formbuilder.group({
os: [null, [Validators.required]],
});
const osType= ['Android', 'Ios']
I tried
this.formgroup.controls.os.setValue(osType)
Result
os: ['Android', 'Ios']
Expected Result
os: 'Android'
os: 'Ios'
I need to send data from using formdata. i have tried with setValue but i got different result than i expect. can someone tell me how to do for the expected result. Thank in advance