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

What is dependency injection (di)?

596


What is angularjs dom?

586


What is the benefit of angular?

530


Is typescript a programming language?

522


What are differences between templateurl and template?

653


Is angular object oriented?

557


What is the difference between an order and a directive?

573


How does lazy load work?

588


How can someone make an ajax call using angularjs?

562


How to updating angular cli?

659


What is the use of pipe in rxjs?

561


What is traceur compiler in angular 2?

583


What is angular cli command?

573


How are angularjs prefixes $ and $$ used?

630


What mean by topology?

538