From 93245b6bc78a888abb63003b3e2485548aea46e6 Mon Sep 17 00:00:00 2001 From: HarveyMac Date: Sat, 5 Nov 2022 16:39:44 +0800 Subject: [PATCH] CurrencyPipe --- src/app/app.component.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/app.component.html b/src/app/app.component.html index 05fad01..df235d6 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1 +1,3 @@ -
百分率:{{ pi | percent: '2.2-4' }}
+
金額:{{ 25000 | currency }}
+
CAD 貨幣碼:{{ 25000 | currency: "CAD" }}
+
貨幣指示格式:{{ 25000 | currency: "EUR":"symbol" }}