0👍
Computed properties are functions that you use as properties.
In your case, I think that you can use age like you’re doing with the drugs or conditions. Than the 2 way data bindings take care of that.
data: {
user : user,
alergies : user.alergies,
conditions : user.conditions,
drugs : user.drugs,
age : user.age,
solicitudes: solicitudes,
}
Based on your comment bellow, maybe you can use this:
compiled: {
user[age] = theAgeOfTheUser
}
That method will create a new property on the user object. Then you can modify like any other value.
Source:stackexchange.com