title: Numeric Input Only, Angular IE11
body: <p>I have an input field that accepts numbers only, however this only works within chrome. When I try the same input field in IE11 it accepts all types of inputs.</p>
  
  <pre><code>&lt;input type="number"/&gt;
  </code></pre>
  
  <p>I have also tried with no victory.</p>
  
  <pre><code>&lt;input type="text" pattern="[0-9]*"/&gt;
  </code></pre>
  
  <p>Any work around for this? IE11 is sure something magical.</p>
  
  <p>Solved myself:</p>
  
  <p>Added</p>
  
  <pre><code>&lt;input type="text" (keypress)="isNumberKey($event)"/&gt;
  </code></pre>
  
  <p>And then in my component:</p>
  
  <pre><code>  isNumberKey($event) {
      let charCode = ($event.which) ? $event.which : $event.keyCode;
      console.log('Char code is ---&gt; ', charCode);
      if (charCode &gt; 31 &amp;&amp; (charCode &lt; 48 || charCode &gt; 57))
        return false;
  
      return true;
    }
  </code></pre>