I'm currently working on an Angular 5 application and I have a requirement to format an input field with thousand separators (spaces). However, the model I am using only allows numbers without spaces.
Since my application is already fully developed, I don't want to make changes to all the TypeScript code. Instead, I am looking for a solution where I can create a directive or pipe to achieve the desired formatting.
An example of what I am aiming for can be seen here:
https://i.sstatic.net/eRP5u.png
My question is: Is it possible to create a custom Input box model that meets this requirement?
Version :
- Angular5
Steven