title: Angular ng messages show errors on ng repeat form
body: <p>I want to generate inputs with ng repeat, the problem is when i have an error this is only apply on the last element, how can i make this apply per element?</p>
  
  <pre><code>&lt;form name="setPlayersForm"&gt;
    &lt;div ng-repeat="player in rp.KillerService.getPlayers() track by $index" class="name-input"&gt;
      &lt;input type="text"
             placeholder="Your Name"
             ng-model="player.name"
             required/&gt;
      &lt;a class="fa fa-trash-o" ng-if="player.newPlayer" ng-click="rp.removePlayer(player)"&gt;&lt;/a&gt;
    &lt;/div&gt;
    &lt;ng-messages for="setPlayersForm.$error" ng-if="rp.submitted"&gt;
      &lt;ng-message when="required" class="alert-box alert"&gt;This field is required&lt;/ng-message&gt;
    &lt;/ng-messages&gt;
  &lt;/form&gt;
  </code></pre>