Answer the question
In order to leave comments, you need to log in
Why doesn't the computed property fire?
Hello
this.form.forEach((item)=>{
if(!item.valid){
complete++;
}
});
data
hook beforeMount
. Reactivity is initialized much earlier. beforeCreate
Answer the question
In order to leave comments, you need to log in
valid: false
to each in form[]
and if(!item.valid){
the sign was not mistaken?
form.valid you don't set the property to be reactive, so you need to set it todata
Try using this.$set(object, 'newPropName', value) and you'll be fine.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question