This library supporting Angular version 17
npm i tr-currency
This package have an standalone pipe. If you want to use it you have to import TrCurrencyPipe
your standalone component or your module.
import { TrCurrencyPipe } from 'tr-currency';
imports: [
TrCurrencyPipe
]
{{money | trCurrency}}
14505.50 ==> 14.505,00
//If you want to use symbol, you can use parameter that.
{{money | trCurrency : '₺'}}
14505.50 ==> 14.505,00 ₺
//If you want the symbol to be first, you can stil do it with a parameter.
{{money | trCurrency : '₺' : true}}
14505.50 ==> ₺14.505,00