What are different states of a form in AngularJS?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is injector in angularjs?

610


What classes should I not add to module's declarations?

607


How prevents html dom based cross site scripting (xss) attacks?

627


Write command to generate a component in specific module in angular cli?

625


What do you mean by controllers?

586


What are the cookies in angular 2?

624


Who is the author of angular js?

668


Explain ddo in angularjs?

639


What are guards in angular?

588


What is a decorator function?

580


Explain what angular js routes does ?

633


Which is better angular material or bootstrap?

592


What is the difference between mean stack and full stack?

589


What is ng-repeat directive in angularjs?

588


What are promises in angularjs?

565