AngularJs Form Validation

Tags: AngularJs

Add the “novalidate” attribute to the form.

Attributes for fields:

Attributes for fields

Attribute Description
ng-required required field
ng-minlength minimum length
ng-maxlength maximum length
ng-pattern Pattern validation


$pristine ng-pristine Hasn't been used
$dirty ng-dirty Has been used
$touched ng-touched Has been blurred
$valid ng-valid Element is valid
$invalid ng-invalid Element is not valid

No Comments

Add a Comment