title: To validate input to be only numbers with a limit of min and max 0-10000 using ng-pattern(new to angular)?
body: <p>I have two input fields to be of type numeric which allows a range of min value 0 and maximum value 10000.how would i make both the fields to allow numbers between max and minimum values no values beyond that.</p>
  
  <p>I have tried with the following code please review and help</p>
  
  <pre><code>&lt;div class='panel'&gt;
      &lt;span&gt;Min: $&amp;nbsp;&lt;/span&gt;
      &lt;input id="text-input-1" class="width" type="number" placeholder="USD " ng-model="vm.min" ng-pattern="/^[0-9]{1,7}$/"&gt;
      &lt;span&gt;Max: $&amp;nbsp;&lt;/span&gt;
      &lt;input id="text-input-1" class="width" type="number" placeholder="USD " ng-model="vm.max" ng-pattern="/^[0-9]{1,7}$/"&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>But,As per my question i want in the user input fields only not to allow the values beyond my range.rather displaying messages</p>