DEV Community

Daniel Zotti
Daniel Zotti

Posted on

#LearnedToday: ng-input-number-i18n

🇮🇹🇬🇧 Have you ever worked with i18n and numbers?

🤔 A few years ago I needed an angular directive to handle displaying an approximate decimal number for different locales.

At the same time I needed to edit the value by displaying the full number with all the decimal digits when the input had the focus (imagine having some kinf of excel sheet full of such cells).

💡 I couldn't find a ready-made component, so in the end, I created an open source project myself and I deployed an npm package to use in different projects.

ng-i18n-input-number demo

📦 npm package
🎮 demo
💻 github

Top comments (0)