Am working on angular forms where I want to pass values of the select input field in my form. I have 2 select input field where one works properly when one works fine if I use
<option [value]='user.id'></option>
but the other one is not working since if I use,
<option [value]='user'></option>,
where user is an object. I cannot able to parse the value of the particular id of a user (i.e) user.user_id
It returns me an object in the [object] [object] which i try to parse, event.target.value.user.user_id , but am getting undefined error. Can someone help me to solve how to parse the object or how to pass multiple values is [value] field