title: How can I make input field accept INTEGERS only with AngularJS
body: <p>How can I prevent typing anything except digits (integers) into an input field with angularJS</p>
  
  <p>type="number" allows floating point numbers</p>
  
  <p>I also tried several regexes with ng-pattern, but those floating points were still allowed, although I explicitly specified digits only.</p>
  
  <p>I'm fiddling with watchers at the moment, but can't make them work properly, at least not yet. I'm thinking of writing keydown event handlers for these fields, but still hoping there's better way.</p>