title: Basic Comma to Dot Conversion
body: <p>I have a parameter dinamically generated based on an array</p>
  
  <pre><code>&lt;input ng-change="vm.commaToDecimalConversion(this);" ng-value="templateParameter.value" ng-model="vm.parametersMap[templateParameter.dmsField]" /&gt;
  </code></pre>
  
  <p>I wanted to convert the input value from a comma to a dot when the user changes the input</p>
  
  <pre><code> vm.commaToDecimalConversion = function(input) {
      console.log(input);
      var val = (input) ? input.value.toString().trim().replace(",",".") : null;
      console.log(val);
      console.log(input.value);
      return parseFloat(val);
  }
  </code></pre>
  
  <p>My code gives errors on input.value.</p>
  
  <p>How do I convert the value from the input dynamically?</p>