|
1 |
| -<hr> |
2 |
| -<!-- async examples at the top so can see them in action --> |
3 |
| -<hero-message></hero-message> |
| 1 | +<a id="toc"></a> |
| 2 | +<h1>Pipes</h1> |
| 3 | +<a href="#happy-birthday1">Happy Birthday v1</a><br> |
| 4 | +<a href="#birthday-date-pipe">Birthday DatePipe</a><br> |
| 5 | +<a href="#happy-birthday2">Happy Birthday v2</a><br> |
| 6 | +<a href="#birthday-pipe-chaining">Birthday Pipe Chaining</a><br> |
| 7 | +<a href="#power-booster">Power Booster custom pipe</a><br> |
| 8 | +<a href="#power-boost-calc">Power Boost Calculator custom pipe with params</a><br> |
| 9 | +<a href="#flying-heroes">Flying Heroes filter pipe (pure)</a><br> |
| 10 | +<a href="#flying-heroes-impure">Flying Heroes filter pipe (impure)</a><br> |
| 11 | +<a href="#hero-message">Async Hero Message and AsyncPipe</a><br> |
| 12 | +<a href="#hero-list">Hero List with caching FetchJsonPipe</a><br> |
| 13 | + |
4 | 14 |
|
5 | 15 | <hr>
|
6 |
| -<hero-list></hero-list> |
| 16 | +<a id="happy-birthday1"></a> |
| 17 | +<h2>Hero Birthday v1</h2> |
| 18 | +<hero-birthday></hero-birthday> |
7 | 19 |
|
8 | 20 | <hr>
|
| 21 | +<a id="birthday-date-pipe"></a> |
| 22 | +<h2>Birthday DatePipe</h2> |
| 23 | +<!-- #docregion hero-birthday-template --> |
9 | 24 | <p>The hero's birthday is {{ birthday | date }}</p>
|
| 25 | +<!-- #enddocregion hero-birthday-template--> |
10 | 26 |
|
| 27 | +<!-- #docregion format-birthday --> |
11 | 28 | <p>The hero's birthday is {{ birthday | date:"MM/dd/yy" }} </p>
|
| 29 | +<!-- #enddocregion format-birthday--> |
12 | 30 |
|
13 | 31 | <hr>
|
14 |
| -<h4>Hero Birthday v.2</h4> |
15 |
| -<hero-birthday>loading...</hero-birthday> |
16 |
| -<hr> |
17 |
| - |
| 32 | +<a id="happy-birthday2"></a> |
| 33 | +<h2>Hero Birthday v2</h2> |
| 34 | +<hero-birthday2></hero-birthday2> |
18 | 35 |
|
| 36 | +<hr> |
| 37 | +<a id="birthday-pipe-chaining"></a> |
| 38 | +<h2>Birthday Pipe Chaining</h2> |
19 | 39 | <p>
|
20 |
| - The chained hero's birthday is |
21 |
| - {{ birthday | date | uppercase}} |
| 40 | +<!-- #docregion chained-birthday --> |
| 41 | + The chained hero's birthday is |
| 42 | + {{ birthday | date | uppercase}} |
| 43 | +<!-- #enddocregion chained-birthday --> |
22 | 44 | </p>
|
23 | 45 |
|
24 | 46 | <p>
|
25 |
| - The chained hero's birthday is |
26 |
| - {{ birthday | date:'fullDate' | uppercase}} |
| 47 | +<!-- #docregion chained-parameter-birthday --> |
| 48 | + The chained hero's birthday is |
| 49 | + {{ birthday | date:'fullDate' | uppercase}} |
| 50 | +<!-- #enddocregion chained-parameter-birthday --> |
27 | 51 | </p>
|
28 | 52 | <p>
|
29 |
| - The chained hero's birthday is |
30 |
| - {{ ( birthday | date:'fullDate' ) | uppercase}} |
| 53 | +<!-- #docregion chained-parameter-birthday-parens --> |
| 54 | + The chained hero's birthday is |
| 55 | + {{ ( birthday | date:'fullDate' ) | uppercase}} |
| 56 | +<!-- #enddocregion chained-parameter-birthday-parens --> |
31 | 57 | </p>
|
32 | 58 | <hr>
|
33 |
| -<power-booster>loading...</power-booster> |
| 59 | +<a id="power-booster"></a> |
| 60 | +<power-booster></power-booster> |
| 61 | + |
| 62 | +<hr> |
| 63 | +<a id="power-boost-calc"></a> |
| 64 | +<power-boost-calculator>loading</power-boost-calculator> |
34 | 65 |
|
35 | 66 | <hr>
|
36 |
| -<power-boost-calculator>loading ..</power-boost-calculator> |
| 67 | +<a id="flying-heroes"></a> |
| 68 | +<flying-heroes></flying-heroes> |
| 69 | + |
| 70 | +<hr> |
| 71 | +<a id="flying-heroes-impure"></a> |
| 72 | +<flying-heroes-impure></flying-heroes-impure> |
| 73 | + |
| 74 | +<hr> |
| 75 | +<a id="hero-message"></a> |
| 76 | +<!-- async examples at the top so can see them in action --> |
| 77 | +<hero-message></hero-message> |
| 78 | + |
| 79 | +<hr> |
| 80 | +<a id="hero-list"></a> |
| 81 | +<hero-list></hero-list> |
| 82 | + |
| 83 | +<div style="margin-top:12em;"></div> |
0 commit comments