docs(core): fix Formatters -> Pipes

long overdue update

Closes #1629
This commit is contained in:
gdi2290 2015-04-30 23:02:14 -07:00 committed by Misko Hevery
parent 42f6baeaec
commit 09b39bf77a
2 changed files with 27 additions and 15 deletions

View File

@ -1,15 +0,0 @@
# Formatters
Formatters can be appended on the end of the expressions to translate the value to a different format. Typically used
to control the stringification of numbers, dates, and other data, but can also be used for ordering, mapping, and
reducing arrays. Formatters can be chained.
NOTE: Formatters are known as filters in Angular v1.
Formatters syntax is:
```
// TODO: provide syntax of formatter here
```

View File

@ -0,0 +1,27 @@
# Pipes
Pipes can be appended on the end of the expressions to translate the value to a different format. Typically used
to control the stringification of numbers, dates, and other data, but can also be used for ordering, mapping, and
reducing arrays. Pipes can be chained.
NOTE: Pipes are known as filters in Angular v1.
Pipes syntax is:
```
<div class="movie-copy">
<p>
{{ model.getValue('copy') | async | uppercase }}
</p>
<ul>
<li>
<b>Starring</b>: {{ model.getValue('starring') | async }}
</li>
<li>
<b>Genres</b>: {{ model.getValue('genres') | async }}
</li>
<ul>
</div>
```