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 |
What is difference between javascript and typescript?
What is lazy loading images?
What is injector bubbling?
What is a selector?
What is the difference between `{'ngfor'}` and `{`ngforof`}` in angular 2?
What is the use of typescript in angular2?
What is angularjs architecture?
What is the use of interceptors in angular?
How do we display errors in a component view with angular 2?
Explain package.json file in angular?
What is ng app in angular?
What is content projection in angular?