Reputation: 670
How to change angularjs currency format? I need to change like this
2.543.128,76
. Default angularjs format $254,312,876.00
.
Upvotes: 5
Views: 3794
Reputation: 1075
you just have to add the right local like <script src="i18n/angular-locale_tr-tr.js"></script>
supported locales are here : https://github.com/angular/angular.js/tree/master/src/ngLocale
you could also do it with number filter :
{{(produce.price | number:2) + "₺"}}
Upvotes: 1