The solution in that post is to use the name attribute. In this question I'm wondering if it is possible to do it without
–
Jeanluca ScaljeriMar 3 '14 at 10:10

$serValidity is part of the angularjs magic. If you want to use it, than you need to stick to angularjs Form handling. And this means, you need a name attribute. What is the problem with the name attribute anyway?
–
schackiMar 3 '14 at 10:16

Well, the directive is generic. Inside one form it can be used multiple times. So if I need to use the name attribute I need to generate a random name (I think). So thats why I was wondering if I could do without
–
Jeanluca ScaljeriMar 3 '14 at 10:24

you will still have to user the name attribute.. only thing is: you will have to use ng-form inside your directive
–
entreMar 3 '14 at 11:58

This cannot work. If you have multiple elements with name="itAmazingName", I would say that the $setValidity breaks, because the form treats all the elements as one entity!
–
Jeanluca ScaljeriMar 3 '14 at 11:48

Who said about multiple elements with same name? I only suggested to use name for directive and then consume it in directive template
–
maurycyMar 3 '14 at 11:55

Ok, you want to call the directive element with a name attribute. Interesting, but still you have to generate a name attribute value.
–
Jeanluca ScaljeriMar 3 '14 at 12:13