title: Add values of the text fields and show the sum
body: <p>I'm trying to add few numbers using angularjs and it seems if i have input type="text" then it does not add the numbers and if i have input type="numbers" then my directive does not work</p>
  
  <p>input type="text" does not add up
  input type="number" directive does not work</p>
  
  <p>I have put together the sample that demonstrates the above problem
  <a href="http://jsfiddle.net/abuhamzah/khh2fyjs/1/" rel="nofollow">http://jsfiddle.net/abuhamzah/khh2fyjs/1/</a></p>
  
  <pre><code>&lt;div ng-app="myApp"&gt;
      &lt;input type="text" ng-model="a1" numbers-only="numbers-only" maxlength="4"/&gt;
      &lt;br/&gt;
      &lt;input type="text" ng-model="b1" numbers-only="numbers-only" maxlength="4" /&gt;
      &lt;br&gt;
      &lt;input type="text" ng-model="c1" numbers-only="numbers-only" maxlength="4"/&gt;
      &lt;br/&gt;
      &lt;br&gt;
      &lt;input type="text" ng-model="d1" numbers-only="numbers-only" maxlength="4" /&gt;
      &lt;br&gt;
     payed &lt;input type="text" ng-model="e1" numbers-only="numbers-only"   /&gt;
      &lt;hr/&gt;
       &lt;h3&gt;{{ e1 - (a1+b1+c1+d1) | currency}} &lt;/h3&gt;  
  &lt;/div&gt;
  </code></pre>