Friday 24 March 2017

Amazing Form Validation by using AngularJS


AngularJS provides an amazing form validation by default. We don't need to write any additional code. AngularJS allows you to get current state of Input Elements and also Forms.
By using the states you can do form validation and also you can set options for the validation messages, like in which state the message should be display.

Here you can get complete collection of AngularJS Topics.

Here are the list of states for Input Elements

  • $untouched
  • $touched
  • $pristine
  • $dirty
  • $invalid
  • $valid
  • $error

Here are the list of states for Form

  • $pristine
  • $dirty
  • $invalid
  • $valid
  • $submitted
To Know more about the above Form and Input states Please visit our Main Blog