Skip to content

Instantly share code, notes, and snippets.

@carloscarcamo
Created December 14, 2015 22:18
Show Gist options
  • Save carloscarcamo/74f45c1267439f827151 to your computer and use it in GitHub Desktop.
Save carloscarcamo/74f45c1267439f827151 to your computer and use it in GitHub Desktop.
Show angular form errors
<tt>reviewForm.$valid = {{ 'reviewForm.$valid' }}</tt>
<ul>
<li ng-repeat="(key, errors) in reviewForm.$error track by $index"> <strong>{{ 'key' }}</strong> errors
<ul>
<li ng-repeat="e in errors">{{ e.$name }} has an error: <strong>{{ key }}</strong>.</li>
</ul>
</li>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment