title: how to allow only numbers in textbox in angularjs?
body: <p>Hi am newbie to angular js?
  How to allow numbers only in texbox once user enter decimal value or string showing error in angular js?</p>
  
  <pre><code> &lt;div class="col-md-6 col-sm-6"&gt; 
                                                          &lt;label class="col-md-5 col-sm-5 pad-top5 pad-lft-no"&gt;Min &lt;span class="error"&gt;*&lt;/span&gt;&lt;/label&gt;
                                                          &lt;input positive  type="number" class="col-md-7 col-sm-7 cls_input_inherit numberinput" min="0" ng-maxlength="3" id="age_min" name="age_min" ng-model="attributes.age_min"  required/&gt;
                                                          &lt;label for="age_min" ng-show="submittab2 &amp;&amp; attributesForm2.age_min.$error.required" class="error"&gt;{{formValidation.required}}&lt;/label&gt;                                                           
                                                          &lt;label for="age_min" ng-show="submittab2 &amp;&amp; !attributesForm2.age_min.$error.positive &amp;&amp;  attributesForm2.age_min.$error.maxlength" class="error"&gt; {{formValidation.monthMaxChar}} &lt;/label&gt;
                                                          &lt;label for="age_min" ng-show="submittab2 &amp;&amp; !attributesForm2.age_min.$error.positive &amp;&amp; !attributesForm2.age_min.$error.maxlength &amp;&amp; attributesForm2.age_min.$error.min" class="error"&gt;{{formValidation.minMax}}&lt;/label&gt;
                                                          &lt;label for="age_min" ng-show="submittab2 &amp;&amp; !attributesForm2.age_min.$error.positive &amp;&amp; !attributesForm2.age_min.$error.maxlength &amp;&amp; attributesForm2.age_min.$error.number" class="error"&gt;{{formValidation.errorNumber}}&lt;/label&gt;
                                                          &lt;label for="age_min" ng-show="submittab2 &amp;&amp; attributesForm2.age_min.$error.positive" class="error"&gt;{{formValidation.minpositive}}&lt;/label&gt;
                                                      &lt;/div&gt;
  </code></pre>
  
  <p>Am try above code but it's not showing error when enter decimal value?How to solve it?</p>