angularjs $getValidity of email field

There is a $setValidity which you can use on controllers to set the validation variables. But why is there not a $getValidity?

Watching this doesn’t work as suggested.

So this would watch the email and when it’s valid format say true.

BUT

It starts at false, then the required validator kicks in and sets it to true (the field has both required, and email format).

Some info here: http://docs.angularjs.org/api/ng.directive:form

refs:

Sam is a web developer, online entrepreneur and investor. In his spare time he enjoys coding, playing chess and love to share what he learns.

Leave a Reply

Your email address will not be published. Required fields are marked *