In the process of formatting numbers, I am encountering different scenarios - some are directly defined in the HTML template, while others are fetched using @ViewChild textContent in TS. The desired format is to display numbers like this: 1 213.00.
Specifically, after each thousand, there should be an empty space.
I am looking for a solution that can be applied in both HTML and TS. How can I achieve this flexibility?
Your assistance is greatly appreciated!