I currently use this pipe {{ product.productPrice | number:'.2-2' }}
And result is 1,000,000.00 but I want to remove the .00
How do you do that?
I currently use this pipe {{ product.productPrice | number:'.2-2' }}
And result is 1,000,000.00 but I want to remove the .00
How do you do that?
Copyright © 2021 Jogjafile Inc.
Use this :
1.0-0 means: at least one digit before decimal point, 0 digits after decimal point.
The general format is:
https://angular.io/api/common/DecimalPipe