..if a form has multiple controls, but only one of its' controles is 
$dirty, and that control is then made pristine, the form remains dirty. 
Since there is no API property FormController.$ngModels to interrogate, 
seems like it is not possible for a client programmer to also revert the 
form to pristine state. Is there a reason not to have the parent form 
revert to $pristine in this case? At least on the surface, seems to make 
sense to have ngModel.$setPristine() to a method on the parent form that 
would invoke form.$setPristine() if all ctrls are $pristine.

-nikita

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to