How can I achieve something like this:
ng-class="{ 'has-errors' : form_editProfile.password.$invalid && !form_editProfile.password.$pristine......
but, within a loop/ng-repeats (of dynamic forms, and dynamic fields), something like:
<div ng-repeat="(form, fields) in sections">
<form name="form_{{form | alphanumeric}}" novalidate>
<div ng-repeat="(name, field) in fields" ng-class="{ 'has-errors' : form_{form | alphanumeric}.{field}.$invalid && !form_{form | alphanumeric}.{field}.$pristine, 'no-errors' : form_{form | alphanumeric}.{field}.$valid">
......where 'alphanumeric' is a filter that I have which converts "Contact Info" to "ContactInfo" (a valid form name) - for example.
The basic dynamicly generated form/form elements is working, I just can't work out how to get the validation working properly in this situation with embeded expressions..