I created a plunker .
I generate input elements dynamically when the "+ Name" button is pressed, each inside an ng form.
How can I capture all instances of an ng form to validate each individual ng form? So that the "+ Name" button remains disabled if the fields are invalid or a new ng form is created?
Edit Details on the structure of the form
There are other fields in the form that I deleted for brevity. This is basically a long form, something like
<form name="myForm"> <input name="one" /> . . <div ng-repeat....> <ng-form> <input name="schoolName" /> </ng-form> </div> <button>+ Name</button> <input name="some" /> <input name="other" /> </form>
parsh source share