-
-
Notifications
You must be signed in to change notification settings - Fork 115
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
Number filter #77
Comments
I added a 'number()' filter to the library. You can try it by upgrading to npm install vue2-filters@0.8.0-beta.1 The documentation for it here: https://github.com/freearhey/vue2-filters#number Please check it. And if there are no problems, then I will make a full release of |
Thanks. Works like expected. The global configuration doc,could be updated. But that was self explained for me. But a global configurable default format (currently static '0') would be awesome. Should i do a seperate Issue for that? |
@MaximilianFranke I finally found time to update the documentation and add the format to the global options. I also added the option |
In my nuxt project, the global configurations for number filters is not working. But the global configuration for other filter like currency is working perfectly. It works fine when it is configured locally but I have to do it repeatedly, I think it would be better if the global configurations is working. Nuxt version: 2.10.1 |
@kevinalexandersurjadi Thanks for your feedback! I will try to figure out what is wrong and publish a fixed version of ASAP. |
@kevinalexandersurjadi I think I found what the problem was and I've already published a new version of the package: |
Cool!! Now it's working perfectly @freearhey !! Thanks |
Done. Release |
A filter like the currency filter would be nice for numbers just without the currency symbol.
E.g.:
{{ amount | number(0, { thousandsSeparator: '.' }) }} // 12345 => 12.345
The text was updated successfully, but these errors were encountered: