View on GitHub

Angular-ui-form-validation

Interactive Demo

username | validates no ones, no twos, min char = 5, max = 10, no special chars password | validates number required, lowercase required, uppercase...no space... only validates when password is valid

Instructional Videos


Sample source

<form novalidate>
    <label for="username">Username</label>
    <input type="text" id="username"
        name="username" ng-model="user.username"
        validation-max-length="10"
        validation-min-length="5"
        validation-no-space="true"
        validation-field-required="true"
        validation-no-special-chars="true"
    />
                ...
</form>

↑ Back to top