currency

currency

  • Arguments:

    • {String} [symbol] - default: '$'
    • 1.0.22+ {Number} [decimal places] - default: 2
  • Example:

    {{ amount | currency }}

    12345 => $12,345.00

    Use a different symbol:

    {{ amount | currency '£' }}

    12345 => £12,345.00

    Some currencies have 3 or 4 decimal places, while some others have none, for example Japanese Yen (¥) or Vietnamese Dong (₫):

    {{ amount | currency '₫' 0 }}

    12345 => ₫12,345

doc_VueJS
2016-09-25 05:48:04
Comments
Leave a Comment

Please login to continue.