docs(glossary): Pipes entry update (#3312)

Change Pipe glossary entry; it  used to suggested that one could
implemented a custom pipe by annotating a function with `@Pipe`.
This commit is contained in:
Patrice Chalin 2017-03-01 09:17:48 -08:00 committed by Jules Kremer
parent db26c5780b
commit dd19cdb304
1 changed files with 3 additions and 4 deletions

View File

@ -518,16 +518,15 @@ a#N
.l-sub-section
:marked
An Angular pipe is a function that transforms input values to output values for
display in a [view](#view). Use the `!{_at}Pipe` !{_decoratorLink}
to associate the pipe function with a name. You then use that
name in your HTML to declaratively transform values on screen.
display in a [view](#view).
Here's an example that uses the built-in `currency` pipe to display
a numeric value in the local currency.
code-example(language="html" escape="html").
<label>Price: </label>{{product.price | currency}}
:marked
You can also write your own custom pipes.
Read more in the page on [pipes](!{docsLatest}/guide/pipes.html).
:marked