Javatpoint Logo
Javatpoint Logo

AngularJS Form Validation

AngularJS provides client-side form validation. It checks the state of the form and input fields (input, textarea, select), and lets you notify the user about the current state.

It also holds the information about whether the input fields have been touched, or modified, or not.

Following directives are generally used to track errors in an AngularJS form:

  • $dirty - states that value has been changed.
  • $invalid - states that value entered is invalid.
  • $error - states the exact error.

AngularJS Form Validation Example

Next TopicAngularJS AJAX




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA