Skip to content

Commit 3b747d8

Browse files
committed
Updating validation demo with istructions to specify error messages
1 parent 65b1397 commit 3b747d8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎demos/validation/demo.html‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,11 @@
5656
</div>
5757
<div class="col-xs-12 col-sm-6">
5858
<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 <a href="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>
64+
</ul>
5965
</div>
6066
</div>

0 commit comments

Comments
 (0)