Closed sciracioglu closed 6 years ago
Use this as your reset function: (note that when creating the Form instance, make sure you pass an array as the original data)
reset() {
for (let field in this.originalData) {
this[field] = this.originalData[field];
}
this.errors.clear();
}
thanks
when form posted return error. because form has array object.
how can i change this function ?
`reset() { for (let field in this.originalData) { this[field] = ''; }
(); }`