サイト内の特定の表に価格を小数点以下 3 桁まで表示したいと考えています。
価格はポンド、ドル、ユーロで表示されます。
私の通貨フィルターは、価格を自動的に小数点以下 2 桁に丸めるようです。
.
また、通貨がユーロの場合、理想的には、千単位の区切り記号を aに、小数点記号をに自動変更したいと思い,
ます。
angularjs はこれをサポートしていますか?
景色
<div ng-controller="SpotController">
<table class="header-table-spot-prices">
<thead>
<tr><th>Spot Prices</th><th>Price</th></tr>
</thead>
<tbody>
<tr ng-repeat="spot in spots">
<td>{{ spot.item }}</td>
<!-- This needs to be 3dp -->
<td>{{ spot.price | currency:spot.currency }}</td>
</tr>
</tbody>
</table>
</div>