[Vuejs]-Access value in Vue.js

0👍

Adding my suggestion in a comment as an answer as it appears to have helped.

The official documentation describes a few ways you can use to define filters to format values rendered to a page – https://v2.vuejs.org/v2/guide/filters.html

To get your numeric values formatted such that they are delimited with commas and show a decimal component, you can take advantage of the Number.prototype.toLocaleString() call in JS.

Here’s an example of it in action.

Leave a comment