validity-toggle

directive in module validity

validity-toggle

Bind the visibility of an element to a validity input

Usage

as attribute:

<ANY 
  validity-toggle
  vt-for="string"
  vt-rule="string">
</ANY>

Arguments

ParamTypeDetails
vt-forstringThe name of the validity input to bind to
vt-rulestringThe validity rule to bind to

Examples

The "required" rule is used with a validity-toggle configured to toggle the visibility of a div. 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.