title: Can't apply limit on the input field of type=number
body: <p>Below is my input field of <code>type="number"</code>. I have applied the min and the max attributes to restrict the user to enter the value of the field. The problem is this given validation is still allowing the user beyond the limit while he types the numerical value. Please tell me how can I stop him/her entering the value above the limit.</p>
  
  <pre><code> &lt;input name="capacity" [(ngModel)]="nService.capacity" type="number" 
  class="input-minimal" min="1" max="9999" placeholder="Capacity" required&gt;
  </code></pre>