Skip to content

Commit 5086cce

Browse files
phananyyx990803
authored andcommitted
Amend doc for new currency argument (vuejs#287)
1 parent f39a46b commit 5086cce

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/api/index.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1898,6 +1898,7 @@ type: api
18981898

18991899
- **Arguments:**
19001900
- `{String} [symbol] - default: '$'`
1901+
- `{Number} [decimal places] - default: 2`
19011902

19021903
- **Example:**
19031904

@@ -1915,6 +1916,14 @@ type: api
19151916

19161917
*12345 => £12,345.00*
19171918

1919+
Some currencies have 3 or 4 decimal places, while some others have none, for example Japanese Yen (¥) or Vietnamese Dong (₫):
1920+
1921+
``` html
1922+
{{ amount | currency '₫' 0 }}
1923+
```
1924+
1925+
*12345 => ₫12,345*
1926+
19181927
### pluralize
19191928

19201929
- **Arguments:**

0 commit comments

Comments
 (0)