I have this number.
20.79
I need see the number as
20,79
Or
1.200,76 €
How can I change the . by , and add € currency?
Thanks!
Solution
app.filter('customCurrency', function(){
return function(input, symbol, place){
if(isNaN(input)){
return input;
} else {
var symbol = symbol || '$';
var place = place === undefined ? true : place;
if(place === true){
return symbol + input;
} else{
var new_input = input.replace(".", ",");
return new_input + symbol;
}
}
}
})