validity-toggle
directive in module validity
validity-toggle
validity-toggleBind the visibility of an element to a validity input
Usage
as attribute:
<ANY
validity-toggle
vt-for="string"
vt-rule="string">
</ANY>
Arguments
| Param | Type | Details |
|---|---|---|
| vt-for | string | The name of the validity input to bind to |
| vt-rule | string | The 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.
Updated over 8 years ago
