Vue 2.x input component that formats numbers into USD currency as the user types.
npm install vue2-currency-input --save
<script>
import Vue from 'vue';
import CurrencyInput from "vue2-currency-input";
export default Vue.extend({
name: 'ServeDev',
components: {
CurrencyInput
}
});
</script>
<template>
<div id="app">
<currency-input />
</div>
</template>
This component only formats to US currency.
It will take a string or number and always returns a float
If the string is empty a 0.00 will be returned
Released under the MIT License.