Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 01fb61a

Browse files
committed
remove incorrect remark about parentheses
(As confirmed by Matan Lurey.)
1 parent 6e2a944 commit 01fb61a

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

public/docs/ts/latest/guide/pipes.jade

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -108,19 +108,11 @@ figure.image-display
108108
+makeExample('pipes/ts/app/app.component.html', 'chained-birthday')(format=".")
109109

110110
:marked
111-
If we pass a parameter to a filter, we have to add parentheses
112-
to help the template compiler with the evaluation order.
113-
The following example displays
114-
**<samp>FRIDAY, APRIL 15, 1988</samp>**
111+
This example &mdash; which displays **<samp>FRIDAY, APRIL 15, 1988</samp>** &mdash;
112+
chains the same pipes as above, but passes in a parameter to `date` as well.
115113

116114
+makeExample('pipes/ts/app/app.component.html', 'chained-parameter-birthday')(format=".")
117115

118-
:marked
119-
We can add parentheses to alter the evaluation order or
120-
to provide extra clarity:
121-
122-
+makeExample('pipes/ts/app/app.component.html', 'chained-parameter-birthday-parens')(format=".")
123-
124116
.l-main-section
125117
:marked
126118
## Custom Pipes
@@ -465,7 +457,7 @@ a(id="no-filter-pipe")
465457

466458
The minification hazard is also compelling if less obvious. Imagine a sorting pipe applied to a list of heroes.
467459
We might sort the list by hero `name` and `planet` of origin properties something like this:
468-
code-example(format="." language="html")
460+
code-example(language="html")
469461
&lt;!-- NOT REAL CODE! -->
470462
&lt;div *ngFor="let hero of heroes | orderBy:'name,planet'">&lt;/div>
471463
:marked

0 commit comments

Comments
 (0)