Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to override global options #112

Open
pm-ribeiro opened this issue Apr 12, 2022 · 0 comments
Open

How to override global options #112

pm-ribeiro opened this issue Apr 12, 2022 · 0 comments

Comments

@pm-ribeiro
Copy link

I'm trying to use v-money globally as a directive, so i followed the documentation, and added the following snipet:

import money from 'v-money'; Vue.use(money, { prefix: "R$", decimal: ",", thousands: "." });

I can use the directive this way:
v-money={}

But the options that i setup globally are no reflected, the configs remain with the default, wich is decimals = . and thousands = ,
The only way it worked correctly was setting up in my vue component, like:
v-money={ prefix: "R$", decimal: ",", thousands: "." }

Has anyone had this problem? how to solve?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant