What are different states of a form in AngularJS?
Answer / chaitanya
The AngularJS form goes to the following states, starting from the form rendering and when the user has finished the filling of form.
State 1: pristine and invalid - When the form is first time rendered and the user has not interacted with the form yet.
State 2: dirty and invalid - User has interacted with the form, but form validity has not been satisfied, yet.
State 3: dirty and valid - User has finished the filling of form and the entire form validations has been satisfied
| Is This Answer Correct ? | 2 Yes | 0 No |
Explain order by filter angularjs?
What is the use of $locale service in angularjs?
Explain how we can create module and using it in AngularJS?
Can you write both angular 1 and angular 2 codes in a single project?
How long does bearer token last?
What is link function in angularjs directive?
What are pipes in angular 2?
Why is dom used?
Can angularjs be used for backend?
How to detect swipe event in mobile browsers/devices in AngularJS?
What is the use of http interceptor?
What is injector?