vivek vivek - 1 month ago 35
AngularJS Question

angular currency filters in indian format

I am working on angular based application, its a financial application. In which, I need to display numbers in currency format in dynamic html. Below is the way I have used for this requirement :


it is working fine but it is showing number in US format but I need to display number in indian format.

Example : var amount = 100000

If I am going with above way then number is displayed as

Desired Output:

Any help will be appreciated.


You can use Number.Prototype.toLocaleString() and as your indian you can use it directly,but if you have to specify format ,specify it as Number("100000").toLocaleString('en-IN')

check the following snippet


Hope it helps