I currently have a lightning component that is displaying variables that hold currency values.
The issue I am having is that I would like to format the currency with commas in the UK format meaning $3250.00 displays with commas --> $3,250.00 (and all other subsequent commas).
I have attempted this solution, both using the js override format and the below example example without luck:
<aura:attribute name="myCurr" type="Decimal" default="50000"/>
<ui:outputCurrency aura:id="curr" value="{!v.myCurr}"/>
What am I doing wrong? Here is my sample code below:
<aura:attribute name="GrossRevenuevalue" type="currency" default="0.00" />
<div class="slds-truncate" style="currency" title="Gross Revenue value"> {!v.GrossRevenuevalue}
Added under function
var recId = component.get("v.recordId");
var curr = cmp.find("curr");
curr.set("v.GrossRevenuevalue", '$#,###.00');