From 1a8bbea1d18884d5b80751b7c169db51a54a4354 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jesu=CC=81s=20Rodri=CC=81guez?= Date: Fri, 29 Jul 2016 13:08:39 +0200 Subject: [PATCH] docs(pipes): add a section about the Intl API closes #1999 --- public/docs/ts/latest/guide/pipes.jade | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/public/docs/ts/latest/guide/pipes.jade b/public/docs/ts/latest/guide/pipes.jade index 744674ac3c..3d50ef7f42 100644 --- a/public/docs/ts/latest/guide/pipes.jade +++ b/public/docs/ts/latest/guide/pipes.jade @@ -39,6 +39,14 @@ block includes [pipe operator](./template-syntax.html#pipe) ( | ) to the [Date pipe](../api/common/index/DatePipe-class.html) function on the right. All pipes work this way. +.l-sub-section + :marked + The `Date` and `Currency` pipes need the **ECMAScript Internationalization API**. + Safari and other older browsers don't support it. We can add support with a polyfill. + + code-example(language="html"). + <script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=Intl.~locale.en"></script> + .l-main-section :marked ## Built-in pipes @@ -48,7 +56,7 @@ block includes .l-sub-section :marked - Learn more about these and many other built-in pipes in the the [API Reference](../api/#!?apiFilter=pipe); + Learn more about these and many other built-in pipes in the [API Reference](../api/#!?apiFilter=pipe); filter for entries that include the word "pipe". Angular 2 doesn't have a `FilterPipe` or an `OrderByPipe` for reasons explained in an [appendix below](#no-filter-pipe).