Created
December 14, 2015 22:18
-
-
Save carloscarcamo/74f45c1267439f827151 to your computer and use it in GitHub Desktop.
Show angular form errors
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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