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.
- [Vuejs]-NW.js child_process not working with vue.js app
- [Vuejs]-Display passed image in template, in VUE
Source:stackexchange.com