<commit_before># Angular ui form validation &nbsp;[![Build Status](https://travis-ci.org/nelsonomuto/angular-ui-form-validation.png?branch=master)](https://travis-ci.org/nelsonomuto/angular-ui-form-validation)

#### A flexible approach to handling form validation and displaying field errors.
The end result is validation and error handling without convoluting your markup with a bunch of ng-show, ng-hide blocks and having to copy paste that into other forms.

```html
 <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"
    />
    <!-- The ability to specify a template will be there in the next release -->
    <input type="text" id="username" name="username" ng-model="user.firstname"
      validation-min-length="{ value: 5, template: 'tooltipMessage.html' }"  
    />
                                  ...

</form>
```
## Install:
 - Either clone & build this repository
 - [or Download the release](https://github.com/nelsonomuto/angular-ui-form-validation/blob/master/dist/angular-ui-form-validation.js)
 - or via bower `$ bower install angular-ui-form-validation`

## Getting Started
>
The idea behind this component is to allow you to be able to do three things:

**(1)** Provide a list of commonly used validations that you may plug in to your form fields.

**(2)** Give you the flexibility to create your own custom validations.

![custom validation message for no space](/errorMessageNoSpace.png "validation-no-space")



**(3)** _(Available with next release)_ Create the markup for how your errors will be displayed separately in any number of isolated templates that can be easily re-used across different forms. 


For a sample example clone this repository and run the grunt serve task.<commit_msg>updating readme<commit_after># Angular ui form validation &nbsp;[![Build Status](https://travis-ci.org/nelsonomuto/angular-ui-form-validation.png?branch=master)](https://travis-ci.org/nelsonomuto/angular-ui-form-validation)

#### A flexible approach to handling form validation and displaying field errors.
The end result is validation and error handling without convoluting your markup with a bunch of ng-show, ng-hide blocks and having to copy paste that into other forms.

![custom validation message for no space](/errorMessageNoSpace.png "validation-no-space")
```html
 <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"
    />
    <!-- The ability to specify a template will be there in the next release -->
    <input type="text" id="username" name="username" ng-model="user.firstname"
      validation-min-length="{ value: 5, template: 'tooltipMessage.html' }"  
    />
                                  ...

</form>
```
## Install:
 - Either clone & build this repository
 - [or Download the release](https://github.com/nelsonomuto/angular-ui-form-validation/blob/master/dist/angular-ui-form-validation.js)
 - or via bower `$ bower install angular-ui-form-validation`

## Getting Started
>
The idea behind this component is to allow you to be able to do three things:

**(1)** Provide a list of commonly used validations that you may plug in to your form fields.

**(2)** Give you the flexibility to create your own custom validations.


**(3)** _(Available with next release)_ Create the markup for how your errors will be displayed separately in any number of isolated templates that can be easily re-used across different forms. 


For a sample example clone this repository and run the grunt serve task.
{'fraction_non_alphanumeric': 0.11228600201409869, 'fraction_numerical': 0.003524672708962739, 'mean_word_length': 3.8216019417475726, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 19, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1479728', 'n_tokens_mistral': 1085, 'n_tokens_neox': 1055, 'n_words': 394}