I have code like this:
<div ng-click="wos.wordWordFormRowClicked(wf, $index)"
ng-form="wordFormNgForm_{{$index}}"
ng-repeat="wf in wos.word.wordForms">
<div ng-show="wordFormNgForm_{{$index}}.$pristine == true">Pristine</div>
...
This sets up one or more forms.
Is there a way that I can check in a loop each of the forms that are created to see if it is still pristine? I know I can add see on the form the setting of $pristine but what I want is something that will cycle through all the forms from my service. For example here it might be 2,3, 4 or more forms with names like this:
wordFormNgForm_1
wordFormNgForm_2
wordFormNgForm_3
wordFormNgForm_4
Or however many of these that have been set up. But I am not sure of a way to check through each of them. I'm not sure if this helps but these forms are located inside another form:
<div ng-form="wos.wordNgForm">
<div ui-view></div>
</div>