You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: demos/validation/demo.html
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -56,5 +56,11 @@
56
56
</div>
57
57
<divclass="col-xs-12 col-sm-6">
58
58
<pre>{{user | json}}</pre>
59
+
<p>Validate just like any other angular application, except specifying validation messages for a control wrapped in <code>abmFormGroup</code> directive: </p>
60
+
<ul>
61
+
<li>Add a <code>error-messages</code> attribute which points to an object map containing the type of error and error message as key - value pairs</li>
62
+
<li>Add a <code>error-messages-include</code> which points to a template as mentioned in the <ahref="https://docs.angularjs.org/api/ngMessages#reusing-and-overriding-messages" target="_self">documentation</a></li>
63
+
<li>Inject <code>abmConfig</code> service in your application and provide an error map via it's <code>setErrors</code> method. Note that these will be global for the application</li>
0 commit comments