Are you using Vue.js and need to apply input / output formatting to a number input field?
This is quite tricky, as I had to find out. Finally I'd suggest not to waste your time, but use this library instead:
If you'd like to create your own solution, your options keywords are for example:
- Vue Custom directives
- Computed properties with Getters & Setters
- Vue Watchers
- Or splitting v-model into
But as already said, in most cases you'll have to fight so many different problems for different languages that this wonderful library is worth it.