title: Angular input field type number should allow only numbers from 0-9
body: <p>Having an input field where the user will enter the amount in it. i do want to restrict the users from entering decimal points.
  Eg : if user tries to enter 121.2 , i should not allow him to place '.'(decimal point) character in the input box.</p>
  <p>The below sample works on web but the same is not working on android mobile numberic keypad.</p>
  <p>Sample-1</p>
  <p>&lt;input (keydown)=&quot;if(event.key==='.'){event.preventDefault();}&quot; type=&quot;number&quot;&gt;</p>
  <p>Sample-2 : (Have tried this to solve issue in numeric keypad but doesnt work)</p>
  <pre><code>&lt;input (keydown)=&quot;if(event.key=='.' || event.keyCode == 229 ||event.key===null ||event.key=='Unindentified'){event.preventDefaul();}&quot; type=&quot;number&quot;&gt;
  </code></pre>
  <p>Any help?</p>