form.FormController.$error

$error

Object

Is an object hash, containing references to controls or forms with failing validators, where:

  • keys are validation tokens (error names),
  • values are arrays of controls or forms that have a failing validator for given error name.

    Built-in validation tokens:

  • email

  • max
  • maxlength
  • min
  • minlength
  • number
  • pattern
  • required
  • url
  • date
  • datetimelocal
  • time
  • week
  • month
doc_AngularJS
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.