[Vuejs]-Creating a single array from multiple inputs in vue application

1👍

Well, you can just push them to the array. When clicking on the submit button you can call some method submit() for example:

submit() {
this.details.push(this.newUserName)
this.details.push(this.newUserEmail)

console.log(this.details)
}

If you want to reset it on every submit you can just add this.details = [] in the begining of the method

👤dako

Leave a comment