title: AngularJS Input[type="number"] Validation allow only numbers to be entered
body: <p>I have an input box asking for a number and what I'm trying to do is to make sure the user does not type any letter or any digit that is not valid.</p>
  
  <p>This is my code so far:</p>
  
  <pre><code>    &lt;form name="userForm" novalidate&gt;
          Calories Needed : 
          &lt;input type="number" min="0" ng-model="user.calories"&gt;
      &lt;/form&gt;
  </code></pre>
  
  <p>I've been looking for a way using AngularJS but have had no luck. I've come across posts where they suggested creating a directive but I was looking for another technique. I'm still a beginner so I don't want to just use code w/o understanding what exactly is going on.</p>