Format input as number with locale in Angular 6
问题 I am trying to format a number in a text input in the locale of the user. I tried to use DecimalPipe and a custom self-made pipe and both work at first. The problem is, as soon as the number is formated into a string, the pipe doesn't work anymore since it is supposed to be applied on a number. So for example when I type 1234.23 , it displays 1 234,23 but the DecimalPipe doesn't work on 1 234,23 and I get the NaN error. I didn't find anything that allows me to turn back the formatted text