Model Object Error Functions void model
Clears out all errors set on the object or only the ones set for a specific property or name.
Name | Type | Required | Default | Description |
---|---|---|---|---|
property | string | No | Specify a property name here if you want to clear all errors set on that property. | |
name | string | No | Specify an error name here if you want to clear all errors set with that error name. |
// Clear all errors on the object as a whole
this.clearErrors();
// Clear all errors on `firstName`
this.clearErrors("firstName");