title: How to validate input number length with angular?
body: <p>I want to validate a 9 digits number using angular,</p>
  
  <p>this is in my modal : </p>
  
  <pre><code>&lt;input type="number" class="form-control" ng-model="id" required&gt;
  </code></pre>
  
  <p>i tried pattern = [0-9]{9}, seems its passing every number that its getting . 
  I want to pass only number 000000000 - 9999999999 , min-max also not working for me. </p>
  
  <p>this is what my app adding to this class:</p>
  
  <pre><code> class="form-control ng-pristine ng-valid-number ng-invalid ng-invalid-required"
  </code></pre>
  
  <p>thank u ! </p>