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 angular frontend?
What are observables in angular?
What is the scope of a $scope?
What is lazy loading in angular?
What is ngoninit in angular?
New html element?
Why we need ngmodel in angular 4?
What are the key features/concepts of Angular.js?
What is the use of pipe in angular?
What are filters? Explain different filters provided by angularjs?
What are directives in angular 6?
What is internationalization and how to implement it in angular js?