How can I use numbers with decimal point and angular.js?

I m new with angular.js I have an identifier column in my grid, so I don't want to use formatted numbers with a comma or dot. Should I use the replace method or related regular expression expression? I used like:

{{value | number: 0}}

For example (10,000 - 10,000 in my application that I want to use as 10,000)

+4
source share
1 answer

Then do not use a number filter?

Otherwise, if you want it to be a number type, create a custom filter:

app.filter('customNumber', function() {
    return function(value) {
        return parseInt(value, 10) //convert to int
    }
})

template:

{{value | customNumber}}
+6
source

Source: https://habr.com/ru/post/1614690/