[Vuejs]-Reset value of text input in Vue

0πŸ‘

βœ…

It happens because in the memory testInput is already what is changed

  reset() {   
  this.componentKey += 1;   
  this.testInput = 14; //ADD THIS   
  console.log('parent ' + this.componentKey);    
  }

Leave a comment