title: How do I restrict an input to only accept numbers?
body: <p>I am using ngChange in AngularJS to trigger a custom function that will remove any letters the user adds to the input.</p>
  
  <pre><code>&lt;input type="text" name="inputName" data-ng-change="numbersOnly()"/&gt;
  </code></pre>
  
  <p>The problem is that I need to target the input that triggered <code>numbersOnly()</code> so that I can remove the letters entered. I have looked long and hard on Google and was unable to find anything regarding this.</p>
  
  <p>What can I do?</p>