Question:How to apply validation in AngularJS? 

Answer 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>
 

+ Report
Total Preview: 830
How to apply validation in AngularJS?
Copyright © 2024. Powered by Intellect Software Ltd