title: Validate a dynamic form and Show ngMessages with ngRepeat and dynamic names
body: <p>I have a form with a email field and a button a button which creates a new email fields with a dynamic name.</p>
  
  <p>so i used a ngRepeat with a dynamic name: </p>
  
  <pre><code>&lt;div class="emailReceiverContent" ng-repeat="i in getNb()" &gt; 
  &lt;input class="textInput" 
         ng-init="fieldName = 'mailReciever' + i"
         name="{{fieldName}}"
         ng-model="requestedInfos.mailReceivers[i]"
         type="email"
         required /&gt;
  
  &lt;div class="errorMessage" ng-messages="emailForm[fieldName].$error"          
         role="alert" ng-show="submitted"&gt;
         &lt;div ng-messages-include="error-messages"&gt;&lt;/div&gt;
  &lt;/div&gt;
  
  
   &lt;p class="help-block" ng-show="emailForm['mailReciever'+[i]].$invalid"&gt;
         Valid Email Address Required&lt;br/&gt;
         {{emailForm['mailReciever'+[i]].$error}}
   &lt;/p&gt;
  </code></pre>
  
  <p>...
  Each time the current field shows the error messages, 
  when i create the second , the first one is not changing anymore.</p>
  
  <p>when i submit my form it should show the error message and i have only the errors for the last field.</p>
  
  <p>How it is possible to get the errors for each field separately?</p>