Skip to content

Commit 09b39bf

Browse files
PatrickJSmhevery
authored andcommitted
docs(core): fix Formatters -> Pipes
long overdue update Closes angular#1629
1 parent 42f6bae commit 09b39bf

File tree

2 files changed

+27
-15
lines changed

2 files changed

+27
-15
lines changed

modules/angular2/docs/core/03_formatters.md

Lines changed: 0 additions & 15 deletions
This file was deleted.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Pipes
2+
3+
Pipes can be appended on the end of the expressions to translate the value to a different format. Typically used
4+
to control the stringification of numbers, dates, and other data, but can also be used for ordering, mapping, and
5+
reducing arrays. Pipes can be chained.
6+
7+
NOTE: Pipes are known as filters in Angular v1.
8+
9+
Pipes syntax is:
10+
11+
```
12+
<div class="movie-copy">
13+
<p>
14+
{{ model.getValue('copy') | async | uppercase }}
15+
</p>
16+
<ul>
17+
<li>
18+
<b>Starring</b>: {{ model.getValue('starring') | async }}
19+
</li>
20+
<li>
21+
<b>Genres</b>: {{ model.getValue('genres') | async }}
22+
</li>
23+
<ul>
24+
</div>
25+
```
26+
27+

0 commit comments

Comments
 (0)