title: Angular, input field with a currency mask directive for money format on the fly
body: <p>I'm trying to create an input mask for a EU money field using <a href="http://jquerypriceformat.com/" rel="noreferrer">http://jquerypriceformat.com/</a> </p>
  
  <p>So far in my directive, the input shows correctly to the user with the mask applied, but I believe there's something wrong, because the POST values are being sent with weird formatting, totally different than what we see in the input field.</p>
  
  <p>I include the priceformat.js</p>
  
  <pre><code>&lt;script src="js/jquery.price_format.1.8.min.js"&gt;&lt;/script&gt;
  
  &lt;input type="text" currency-input ng-model...&gt;
  </code></pre>
  
  <p>And on angular:</p>
  
  <pre><code>app.directive('currencyInput', function() {
      return {
        require: '?ngModel',
        link: function($scope, element, attrs, controller) {
          element.priceFormat({
              prefix: '',
              centsSeparator: ',',
              thousandsSeparator: '.'
          });
        }
      };
  });
  </code></pre>
  
  <p>My input shows the value with the mask correctly, but on POST data (called by angular) it's a different value, what am I missing?</p>
  
  <p>input > 2.200,80   |   post > 22,0080</p>
  
  <p>Thanks</p>