I have a number with decimal points like --> 1.33
I want to convert the this value that instead a dot a comma is shown.
I tried that with a custom pipe but that didn´t work.
{{getMyValue() | number:'1.2-2' | commaConvert}}
import { Pipe, PipeTransform } from "@angular/core";
@Pipe({name: 'commaConvert'})
export class CommaConvertPipe implements PipeTransform {
transform(value: number) {
return value+"".replace(".", ",")
}
}
I have also tried to use only the commaConvert pipe.