I'm currently utilizing Intl.NumberFormat in TypeScript/JavaScript within Angular2 to convert a numeric type into a formatted string. While this method is ideal, I am in need of a solution that would include a leading plus sign for positive numbers.
If it's not achievable with Intl.NumberFormat, what other native alternatives may I explore?
@Input() amount : number;
drawLabel() {
var formatter = new Intl.NumberFormat("en-GB",
{
style: "decimal",
minimumFractionDigits:1
});
...
this.label = formatter.format(this.amount)
}