Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 1a8bbea

Browse files
Foxandxsswardbell
authored andcommitted
docs(pipes): add a section about the Intl API
closes #1999
1 parent 22a3704 commit 1a8bbea

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

public/docs/ts/latest/guide/pipes.jade

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@ block includes
3939
[pipe operator](./template-syntax.html#pipe) ( | ) to the [Date pipe](../api/common/index/DatePipe-class.html)
4040
function on the right. All pipes work this way.
4141

42+
.l-sub-section
43+
:marked
44+
The `Date` and `Currency` pipes need the **ECMAScript Internationalization API**.
45+
Safari and other older browsers don't support it. We can add support with a polyfill.
46+
47+
code-example(language="html").
48+
<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=Intl.~locale.en"></script>
49+
4250
.l-main-section
4351
:marked
4452
## Built-in pipes
@@ -48,7 +56,7 @@ block includes
4856

4957
.l-sub-section
5058
:marked
51-
Learn more about these and many other built-in pipes in the the [API Reference](../api/#!?apiFilter=pipe);
59+
Learn more about these and many other built-in pipes in the [API Reference](../api/#!?apiFilter=pipe);
5260
filter for entries that include the word "pipe".
5361

5462
Angular 2 doesn't have a `FilterPipe` or an `OrderByPipe` for reasons explained in an [appendix below](#no-filter-pipe).

0 commit comments

Comments
 (0)