# Angularjs form validation tutorial

## Validation:

Validation is a process of checking something against a standard.

## AngularJS validation:

AngularJS provides client-side form validation. AngularJS provides the facility to get the current state of form and input fields.

## Input States:

$untouched: The specified field has not been touched yet. Value can be true or false.$touched: The specified field has been touched. Value can be true or false.
$pristine: The specified field has not been modified yet. Value can be true or false.$dirty: The specified field has been modified. Value can be true or false.
$invalid: The specified field content is not valid. Value can be true or false.$valid: The specified field content is valid. Value can be true or false.

## Form States:

$pristine: No fields have been modified yet. Value can be true or false.$dirty: One or more have been modified. Value can be true or false.
$invalid: The form content is not valid. Value can be true or false.$valid: The form content is valid. Value can be true or false.