0👍
✅
Looking at your v-model
s it seems the structure of your data function is this:
data() {
return {
info: {
password: '',
passwordConfirm: '',
},
};
},
So you have to refer to the properties of info
object. Change your condition to this:
if( this.info.password != this.info.passwordConfirm ) {
Source:stackexchange.com