title: html5 number type to accept only positive integers
body: <p>I am using an angular app, with an html5 number type input. I am trying to restrict the input to only accepts positive integers and not decimal, floating point numbers. </p>
  
  <p>I tried using some patterns and step=1 min, max values but does not seem to work.</p>
  
  <p>Please suggest.</p>
  
  <p>EDIT:</p>
  
  <p>This is how my form looks like. Sorry for the confusion if I may have cause.</p>
  
  <pre><code>&lt;div class="row bottom-spaced-small"&gt;
          &lt;div class="col-md-3"&gt;
              Number*
          &lt;/div&gt;
          &lt;div class="col-md-9"&gt;
              &lt;input name="txtNumber" ng-disabled="somevalue" min="1" step="1" type="number" ng-required="true" ng-maxlength="50" ng-model="someNumber" class="form-control color-black" /&gt;
          &lt;/div&gt;
          &lt;div class="row" style="padding-left: 30px" ng-if="someForm.$submitted &amp;&amp; !someForm.txtNumber.$valid"&gt;
              &lt;span style="color: red"&gt;Number is mandatory and must be a non 0 positive number.&lt;/span&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  </code></pre>