user3590450
user3590450

Reputation: 513

Use 2 pipes in Angular- HTML

I use curreny pipe, but it add digits after dot. How to remove them?
The result of {{ 1111111 | | currency:'ILS' }} is 1,111,111.00. I want to remove the ".00"

I tried to use both pipes, curreny and number: {{ 1111111 | number: '2.0' | currency:'ILS' }} but it don't give any result.

Upvotes: 1

Views: 914

Answers (1)

Vlad B.
Vlad B.

Reputation: 2927

Try this

{{ 1111111 | currency:'ILS': 'symbol':'1.0-0' }}

symbol will remove zero's.

Please read the documentation is really explained in details. https://angular.io/api/common/CurrencyPipe

Happy coding

Upvotes: 2

Related Questions