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 the use of lazy loading in angular 6?

0 Answers  


How to use angular js?

0 Answers  


How to bootstrap your angular app for multiple modules?

0 Answers  


What is npm start?

0 Answers  


What is @inputs in angular 2?

0 Answers  






What is data binding and its types?

0 Answers  


Which is the first argument typically passed to a node.js callback handler?

0 Answers  


Is angular open source?

0 Answers  


How to declare a component in angular 2?

0 Answers  


What is ng app in angular?

0 Answers  


Explain about lifecycle hook in angular?

0 Answers  


What is model in angular?

0 Answers  


Categories