From a57119761bee503d440bb57efc8557b2bc194f14 Mon Sep 17 00:00:00 2001 From: Changyu Geng Date: Tue, 7 Jul 2020 09:15:44 +0800 Subject: [PATCH] docs: clarify the description of pipes (#37950) This commit clarifies some of the language regarding pipes in the pipes guide. This commit also specifies the term transforming rather than formatting. PR Close #37950 --- aio/content/guide/pipes.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aio/content/guide/pipes.md b/aio/content/guide/pipes.md index a28f0dd646..0d28ab4aa4 100644 --- a/aio/content/guide/pipes.md +++ b/aio/content/guide/pipes.md @@ -1,7 +1,7 @@ # Transforming Data Using Pipes -Use [pipes](guide/glossary#pipe "Definition of a pipe") to transform and format strings, currency amounts, dates, and other display data. -Pipes are simple functions you can use in [template expressions](/guide/glossary#template-expression "Definition of template expression") to accept an input value and return a transformed value. +Use [pipes](guide/glossary#pipe "Definition of a pipe") to transform strings, currency amounts, dates, and other data for display. +Pipes are simple functions you can use in [template expressions](/guide/glossary#template-expression "Definition of template expression") to accept an input value and return a transformed value. Pipes are useful because you can use them throughout your application, while only declaring each pipe once. For example, you would use a pipe to show a date as **April 15, 1988** rather than the raw string format.
@@ -63,7 +63,7 @@ function. {@a parameterizing-a-pipe} -## Formatting data with parameters and chained pipes +## Transforming data with parameters and chained pipes Use optional parameters to fine-tune a pipe's output. For example, you can use the [`CurrencyPipe`](api/common/CurrencyPipe "API reference") with a country code such as EUR as a parameter.