title: Replace comma with a dot in input field
body: <p>European countries uses a comma-sign (,) instead of a dot (.) when they enter decimal numbers. So I want to replace the dot sign with a comma when users enter input. I'm aware that input=number do this but I need support for IE.</p>
  
  <p>I guess directive is the best to do this? I gave it a try with the code below. But it fails.</p>
  
  <pre><code>  .directive('replaceComma', function(){
      return {
        restrict: 'A',
        replace: true,
        link: function(scope, element, attrs){
          scope.$watch(attrs.ngModel, function (v) {
            var convert = String(v).replace(",",".");
            attrs.NgModel = convert;
          });
        }
      }
    });
  </code></pre>
  
  <p>The convert variable is correct. But the value does not change in the input box. So I guess attrs.ngModel = convert, is wrong?</p>