[Vuejs]-Axios – cannot change variable data value

4👍

Change this

.then(function (resp) {
  this.errEmail = true
})

to this

.then((resp) => {
  this.errEmail = true
})

Or manually bind this

   .then(function (resp) {
      this.errEmail = true
    }.bind(this))

Leave a comment