In my Angular 2.0 app I get prices from webapi and i need to format them again for example :
This is what i get from webapi : 40260000 as a price and i need to format it to 40.260 HUF which is Hungarian currency.
I tried some solutions but it seems that i missed something for example :
console.log(this.flatOffer.Price.toLocaleString('hu-HU'));
or
console.log(new Intl.NumberFormat('hu-HU').format(this.flatOffer.Price));
I appreciate any hint.