title: Limit the user's input in an input number to 4 digits
body: <p>How can I prevent (usign maybe Angular) the user from entering more than 4 numbers in a an simple number like this one : </p>
  
  <pre><code>&lt;input type="number"&gt;
  </code></pre>
  
  <p>I used <code>ng-maxlength</code>, and <code>max</code> attributes, but those attributes as specified by w3.org specs and the official website Angular, do not prevent the user from adding more numbers.</p>
  
  <p>What I want is that the input stops in 4 digits, like adding in somehow a mask or something to it.</p>