https://github.com/angular/angular
Revision 270176bbe4bd87a5a9e7ea9e4e725ab51fb87407 authored by cexbrayat on 25 June 2018, 18:05:00 UTC, committed by Victor Berchet on 20 July 2018, 17:33:06 UTC
Adds an example of using the `currency` pipe with a currency that has no cents like CLP,
which will format the amount with no digits if `digitsInfo` is not provided:

    <!-- outputs CA$14.00 -->
    {{ 14 | currency:'CAD' }}
    <!-- outputs CLP14 -->
    {{ 14 | currency:'CLP' }}

Amends the docs, adds an example and fix an error with a current example.

PR Close #24661
1 parent 5840a86
Raw File
Tip revision: 270176bbe4bd87a5a9e7ea9e4e725ab51fb87407 authored by cexbrayat on 25 June 2018, 18:05:00 UTC
docs: more info on currency digits (#24661)
Tip revision: 270176b
.clang-format
Language:        JavaScript
BasedOnStyle:    Google
ColumnLimit:     100
back to top