title: angular ng-repeat form.$error 'item' in 'item in collection'
body: <p>I'm finding a way to automate form validation.
  So I thought at this code</p>
  
  <pre><code>&lt;div id="error-container" data-ng-show="(addContestantFrm.$error.length &gt; 0)"&gt;
      &lt;h6&gt;Show errors&lt;/h6&gt;
      &lt;ul&gt;
          &lt;li data-ng-repeat="(key value) in addContestantFrm.$error"&gt;{{key}}&lt;/li&gt;
      &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>addContestantFrm.$error.length > 0</strong></p>
  
  <p>I've no idea how to check the length of error collection</p>
  
  <p><strong>data-ng-repeat="(key value) in addContestantFrm.$error"</strong></p>
  
  <p>give me an error 
  'item' in 'item in collection' should be identifier or (key, value) but got '(key value)'.</p>
  
  <p>so is there to put my code working ?</p>