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
History
Tip revision: 270176bbe4bd87a5a9e7ea9e4e725ab51fb87407 authored by cexbrayat on 25 June 2018, 18:05:00 UTC
docs: more info on currency digits (#24661)
Tip revision: 270176b
File Mode Size
.circleci
.github
aio
docs
integration
modules
packages
scripts
tools
.bowerrc -rw-r--r-- 39 bytes
.clang-format -rw-r--r-- 73 bytes
.editorconfig -rw-r--r-- 244 bytes
.gitattributes -rw-r--r-- 240 bytes
.gitignore -rw-r--r-- 426 bytes
.mailmap -rw-r--r-- 51 bytes
.nvmrc -rw-r--r-- 4 bytes
.pullapprove.yml -rw-r--r-- 7.5 KB
.travis.yml -rw-r--r-- 3.3 KB
BUILD.bazel -rw-r--r-- 1.5 KB
CHANGELOG.md -rw-r--r-- 335.8 KB
CODE_OF_CONDUCT.md -rw-r--r-- 1.1 KB
CONTRIBUTING.md -rw-r--r-- 13.2 KB
LICENSE -rw-r--r-- 1.1 KB
README.md -rw-r--r-- 1.8 KB
WORKSPACE -rw-r--r-- 4.4 KB
bower.json -rw-r--r-- 89 bytes
browser-providers.conf.js -rw-r--r-- 10.0 KB
build.sh -rwxr-xr-x 17.5 KB
gulpfile.js -rw-r--r-- 1.8 KB
karma-js.conf.js -rw-r--r-- 5.4 KB
package.json -rw-r--r-- 4.3 KB
protractor-e2e.conf.js -rw-r--r-- 1.3 KB
protractor-examples-e2e.conf.js -rw-r--r-- 1.2 KB
protractor-perf.conf.js -rw-r--r-- 1.6 KB
shims_for_IE.js -rw-r--r-- 117.0 KB
test-events.js -rw-r--r-- 262 bytes
test-main.js -rw-r--r-- 10.1 KB
test.sh -rwxr-xr-x 1.1 KB
tslint.json -rw-r--r-- 946 bytes
yarn.lock -rw-r--r-- 251.5 KB
yarn.lock.readme.md -rw-r--r-- 1.3 KB

README.md

back to top