Answers

Question and Answer:

  Home  AngularJS Developer

⟩ Explain me how to validate data in AngularJS?

AngularJS enriches form filling and validation. We can use $dirty and $invalid flags to do the validations in seamless way. Use novalidate with a form declaration to disable any browser specific validation.

☛ Following can be used to track error.

☛ $dirty − states that value has been changed.

☛ $invalid − states that value entered is invalid.

☛ $error − states the exact error.

 206 views

More Questions for you: