ng-dirty A change has been made to the field. ng-valid The data in the field is correct. ng-invalid The content of the field is invalid. ng-valid-key Each validation has its own key.
The key difference between them is that ng-dirty indicates that the input field has been edited by the user, whereas ng-pristine indicates that the field has not been modified by the user. Let's try if we can clear everything up with the help of a little example.
The ng-pristine class indicates that the form has not been altered by the user. If the user hasn't changed the form, this returns true. Type of return: Return a Boolean value True if the user hasn't changed the form/input field; otherwise, False.
Client-side form validation is provided by AngularJS. It monitors the state of the form and input fields (input, textarea, select) and allows you to notify the user. It also keeps track of whether or not the input fields have been tampered with or changed.
Learner's Ratings
4
Overall Rating
64%
16%
2%
11%
7%
Reviews
N
NAVNEET MAHESWARI
5
EASY TO LEARN
P
Prabhat Yadav
5
Amazing course content and easy to understand.
A
Aparna K
5
Excellent
R
Rambo Krish
5
sds
S
Shraddha Naik
5
Good
K
Kijima
5
Very good
L
LAXMAN GOVIND RATHOD
5
The Advanced AngularJS Course was good and included all the topics to find a good job in my City.
V
V.phanindra babu
4
The Advanced AngularJS Course was good and included all the topics to find a good job in my City.
P
Prakriti
4
The Advanced AngularJS Course was good and included all the topics to find a good job in my City.
V
Virender morya
5
Hello
Show More
Recommended Courses
The Complete JavaScript Course - Beginner to Advance
Share a personalized message with your friends.