I am trying to validate some form fields which are given to me from a backend endpoint...
So basically the input elements are dynamically created inside a ng-repeat.
Therefore, the input attributes are also dynamically added, such as the type, name, etc...
However because the name attribute is dynamically added, when I try to validate it, like this, for example:
myForm.elName.$valid
It doesn't return anything because at this point, it doesn't know what elName is.
I created a jsFiddle to demonstrate the problem: http://jsfiddle.net/peduarte/HB7LU/1889/
Any help or advice will be much appreciated!
FANX.
EDIT:
I've been referring to this AWESOME documentation:
http://docs.angularjs.org/api/ng.directive:input.email
 
     
    