()
| 7 | |
| 8 | // Removes all error messages. |
| 9 | _clearErrors() { |
| 10 | for (const [attribute, _array] of Object.entries(this._errors)) { |
| 11 | this._errors[attribute] = [] |
| 12 | } |
| 13 | } |
| 14 | |
| 15 | // Denotes validations that need to run for the given fields. Must be in the |
| 16 | // form of { field: options } where `field` is the name of the field and |