Currency format Angularjs ₺ (Turkish Lira)?

How to change angularjs currency format? I need to change that 2.543.128,76. The default format is angularjs $254,312,876.00.

+4
source share
1 answer

you just need to add the correct local one, for example <script src="i18n/angular-locale_tr-tr.js"></script>

supported locales are here: https://github.com/angular/angular.js/tree/master/src/ngLocale

You can also do this with a digital filter:

{{(produce.price | number:2) + "₺"}}
0
source

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


All Articles