Getting Started
Requirements
AngularJS 1.2.x (for angular-validation 1.2.x)
AngularJS 1.3.x (for angular-validation 1.3.x)
Installation
Install with npm
npm install angular-validation
Or with Bower
bower install angular-validation
Files to download
Add the files to your html
<script src="dist/angular-validation.js"></script>
<script src="dist/angular-validation-rule.js"></script>
If you are using Bower:
<script src="lib/angular-validation/dist/angular-validation.js"></script>
<script src="lib/angular-validation/dist/angular-validation-rule.js"></script>
angular.module('yourApp', ['validation']);
Including your validation rule
Writing your first code
Style Guide
You can style different states of your form elements using the following selectors
Invalid Selectors Valid SelectorsYou can also include your vendor libraries classes in you are using CSS preprocessors such as LESS or SASS.
Using Bootstrap classesFor more on AngularJS validation classes check at their documentation.