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




Youtube For Videos Join Our Youtube Channel: Join Now

Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA