validity-label

directive in module validity

validity-label

Display validation messages for a validity input

Usage

as element:

<validity-label 
  for="string">
</validity-label>

Arguments

ParamTypeDetails
forstringThe name of the validity input to bind to

Examples

Example 01: validity-message (multiple)

The "required" rule and "email" rule are used with a validity-label configured to display the validity-message-<rule> value. Input validation is triggered by the "blur" validity-event, and form validation is triggered when it's submitted via an ng-submit. The style option is configured for Bootstrap 3.