Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AngularJS currency filter in pounds

Tags:

angularjs

i'm learning AngularJS and in the tutorial i'm following we had to use the currency filter, i noticed that this changes, for example 10, into $10.00.

How do i do this for English pounds?

   <p class="price">{{ product.price | currency }}</p> 
like image 538
Kōdo no musō-ka Avatar asked Dec 06 '22 18:12

Kōdo no musō-ka


1 Answers

   {{ price | currency:'Symbol for pound'}}

Place your symbol for pound over here in ' '

like image 70
Hassan Tariq Avatar answered Jan 22 '23 04:01

Hassan Tariq