top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to apply validation in AngularJS?

0 votes
321 views
How to apply validation in AngularJS?
posted Nov 1, 2017 by Jayshree

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

AngularJS provides you built-in validation directives to validate form client side. This makes your life pretty
easy to handle client-side form validations without adding a lot of extra effort. AngularJS form validations are
based on the HTML5 form validators.
AngularJS directives for form validation
Here is a list of AngularJS directive which can be applied on an input field to validate its value

<input type="text"
 ng-model="{ string }"
 [name="{ string }"]
 [ng-required="{ boolean }"]
 [ng-minlength="{ number }"]
 [ng-maxlength="{ number }"]
 [ng-pattern="{ string }"]
 [ng-change="{ string }"]>
</input>
answer Nov 1, 2017 by Shivaranjini
...