What are different states of a form in AngularJS?



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

Post New Answer

More AngularJS Interview Questions

What is components in angular 2?

0 Answers  


Explain different types of component decorators in angular 4?

0 Answers  


Explain component specific hooks?

0 Answers  


Explain class and inheritance in js?

0 Answers  


Can we use multiple ng app?

0 Answers  


Is typescript a programming language?

0 Answers  


Why there are two “destroy” events associated with the termination of scope in angularjs?

0 Answers  


What is dom in angular?

0 Answers  


What is the difference between routermodule.forroot() vs routermodule.forchild()?

0 Answers  


What is the difference between onnginit() and constructor() of a component?

0 Answers  


Why Typescript with Angular?

0 Answers  


Do you think that parent controller can access the methods of child controller or vice versa?

0 Answers  


Categories