ctive. The value of these attributes must match a key in the collection that is provided by
the <code>ngMessages</code> directive.</p>
<p>Consider the following example, which illustrates a typical use case of <code>ngMessages</code>. Within the form <code>myForm</code> we
have a text input named <code>myField</code> which is bound to the scope variable <code>field</code> using the <a href="api/ng/directive/ngModel">ngModel</a>
directive.</p>
<p>The <code>myField</code> field is a required input of type <co