Skip to content

Commit

Permalink
docs(core): fix Formatters -> Pipes
Browse files Browse the repository at this point in the history
long overdue update

Closes angular#1629
  • Loading branch information
PatrickJS authored and mhevery committed May 8, 2015
1 parent 42f6bae commit 09b39bf
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 15 deletions.
15 changes: 0 additions & 15 deletions modules/angular2/docs/core/03_formatters.md

This file was deleted.

27 changes: 27 additions & 0 deletions modules/angular2/docs/core/03_pipes.md
Original file line number Diff line number Diff line change
@@ -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>
```


0 comments on commit 09b39bf

Please sign in to comment.