Why the minlength and maxlength validations are not working?
<p>i am writing code in angularjs using html . in this minlength and maxlength validations are not working .here my code
html code : </p>

<pre><code>&lt;input type="text" id="healthcomplaint" ng-model="userDetails.healthcomplaint" style="color:#4a5665;" class="form-control" name="healthcomplaint" ng-required="true" ng-minlength="3" ng-maxlength="120" ng-pattern="/^[a-zA-Z0-9\s\[\]\.,\_\/\-#']*$/" tabindex="8"&gt;
&lt;span class="ng-hide error_txt" ng-show="submitted &amp;&amp; info.healthcomplaint.$error.required"&gt;Please enter health complaint.&lt;/span&gt;     
&lt;span class="ng-hide error_txt" ng-show="info.healthcomplaint.$error.minlength"&gt;health complaint should have at least 3 characters.&lt;/span&gt;
&lt;span class="ng-hide error_txt" ng-show="info.healthcomplaint.$error.maxlength"&gt;health complaint should not exceed 120 characters.&lt;/span&gt;
</code></pre>