I am trying to use a currency pipe in an input field that the user. So if the user enters 1234, it will reformat to 1,234.00.
I've found a good solution to this here: https://stackoverflow.com/a/50862298/1581924
This works the first time the user enters a number, but if the user re-types the same number, the input pipe is not applied the second time.
Example:
Type: 1234
Result: refomats to 1,234.00 (expected behavior)
Delete 1,234.00 and type 1234 again.
Result: input is not reformatted and left at 1234 (not expected behavior)
Example of code that exhibits the problem: https://stackblitz.com/edit/angular-hnxyzs?file=app/app.component.html
Is there any way to force the pipe to be re-applied if the value is updated the the same value?