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)
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}}
Source: https://habr.com/ru/post/1614690/More articles:https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1614685/noreadaccessexception-exception-while-exporting-lint-errors-to-generate-html-report-in-android-studio&usg=ALkJrhh-KhMdG0ag_0z1hUuW6tRz64RAogStack segment warning in MASM - assemblyЧто значит, если totalMemory невелик, но totalPss очень большой? - androidAutomapper - ReverseMap () does not match - c #How do I sync data between devices online and offline using the Google App Engine? - androidcordova: what's the use of the platform_www folder? - cordovaWeb.config error WebApi Error Handling PushStreamContent - c #Sublime Text: scope selector operators - scopeConvert Mp3 to wav - androidAll Articles