Validation in angularjs.
AngularJS providers more attributes to help programer can validate form and controls in form easy. A form is valid when all of control in it to be valid.
The first we need to know about below property of angularjs:
$dirty: It means that user has interacted with the field.
$valid: It means that the field content is valid.
$invalid: It means that the field content is invalid.
$pristine: It means that user has not interacted with the field yet.
Ok follow this sample.
Learning angularjs via detail examples. AngularJs event, angularjs table, angularjs grid, angularjs sort, angularjs sort filter, angularjs application, angularjs templates, angularjs bootstrap.
Showing posts with label validation. Show all posts
Showing posts with label validation. Show all posts
Home » Posts filed under validation
Subscribe to:
Posts (Atom)
AngularJS tags
Popular Posts
-
Angularjs table sorting, filter and paging This post provides an example about how create a table via sorting, filter and paging. Followin...
-
Angularjs MVC RESTful Web Service example This example shows how to create a simply web application using angularjs , mvc , RESTful We...
-
How to apply ng-class if This example provides two ways using ng-class if expression. Following directives and services in angularjs w...
-
In this article I try to make a simple example about how to apply angularjs routing for asp.net mvc application. After this you can know how...