Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created March 17, 2020 01:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/066ca622210b197192e1386707a43540 to your computer and use it in GitHub Desktop.
Save parzibyte/066ca622210b197192e1386707a43540 to your computer and use it in GitHub Desktop.
Vue.use(VueCurrencyFilter, {
symbol: '$', // El símbolo, por ejemplo €
thousandsSeparator: ',', // Separador de miles
fractionCount: 2, // ¿Cuántos decimales mostrar?
fractionSeparator: '.', // Separador de decimales
symbolPosition: 'front', // Posición del símbolo. Puede ser al inicio ('front') o al final ('') es decir, si queremos que sea al final, en lugar de front ponemos una cadena vacía ''
symbolSpacing: true // Indica si debe poner un espacio entre el símbolo y la cantidad
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment