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

Upgrade Vue 2 -> Vue 3 #98

Open
fariddarmaji98 opened this issue Oct 18, 2024 · 2 comments
Open

Upgrade Vue 2 -> Vue 3 #98

fariddarmaji98 opened this issue Oct 18, 2024 · 2 comments

Comments

@fariddarmaji98
Copy link

fariddarmaji98 commented Oct 18, 2024

why when I use Money3Component v-model it doesn't work, but using Money3Directive it does,
I think this is like an annoying but also fun entertainment, it's adorable to see green-faced arrogant humans

in main.js
import { Money3Directive } from 'v-money3'; app.directive('money', Money3Directive);

in component
<input v-model="selectedStock.price" v-money="money" />

@jonathanpmartins
Copy link
Owner

jonathanpmartins commented Oct 19, 2024

Can you elaborate more on the problem that you're having?

@fariddarmaji98
Copy link
Author

I remember before the upgrade still using Vue 2.6.12 and v-money 0.8.1, it's been 3 years and only now upgraded,
when upgrading Vue 3.5.12 I found an error in using v-bind on v-money, then I decided to upgrade v-money3,
I followed the documentation using Money3Component and no error, configuration via v-bind also works, but v-model “amount” doesn't change when I input the number,
I wanted to honor my seniors so I kept looking and finally was able to use Money3Directive,
I still use Options API, and vue/compat is still set to vue 2

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

2 participants