Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angularjs currency format ₺ (Turkish Lira)?

Tags:

angularjs

How to change angularjs currency format? I need to change like this 2.543.128,76 . Default angularjs format $254,312,876.00.

like image 215
Kvlknctk Avatar asked Nov 08 '22 10:11

Kvlknctk


1 Answers

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) + "₺"}}
like image 90
Dan M. CISSOKHO Avatar answered Nov 24 '22 16:11

Dan M. CISSOKHO