Kvlknctk
Kvlknctk

Reputation: 670

Angularjs currency format ₺ (Turkish Lira)?

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

Answers (2)

Burak Ocak
Burak Ocak

Reputation: 11

{{ product.price | currency: "₺"}}

Upvotes: 1

Dan M. CISSOKHO
Dan M. CISSOKHO

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

Related Questions