| 
									
										
										
										
											2016-05-13 13:44:14 -07:00
										 |  |  | <a id="toc"></a> | 
					
						
							|  |  |  | <h1>Pipes</h1> | 
					
						
							|  |  |  | <a href="#happy-birthday1">Happy Birthday v1</a><br> | 
					
						
							|  |  |  | <a href="#birthday-date-pipe">Birthday DatePipe</a><br> | 
					
						
							|  |  |  | <a href="#happy-birthday2">Happy Birthday v2</a><br> | 
					
						
							|  |  |  | <a href="#birthday-pipe-chaining">Birthday Pipe Chaining</a><br> | 
					
						
							|  |  |  | <a href="#power-booster">Power Booster custom pipe</a><br> | 
					
						
							|  |  |  | <a href="#power-boost-calc">Power Boost Calculator custom pipe with params</a><br> | 
					
						
							|  |  |  | <a href="#flying-heroes">Flying Heroes filter pipe (pure)</a><br> | 
					
						
							|  |  |  | <a href="#flying-heroes-impure">Flying Heroes filter pipe (impure)</a><br> | 
					
						
							|  |  |  | <a href="#hero-message">Async Hero Message and AsyncPipe</a><br> | 
					
						
							|  |  |  | <a href="#hero-list">Hero List with caching FetchJsonPipe</a><br> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-02-09 13:50:08 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  | <hr> | 
					
						
							| 
									
										
										
										
											2016-05-13 13:44:14 -07:00
										 |  |  | <a id="happy-birthday1"></a> | 
					
						
							|  |  |  | <h2>Hero Birthday v1</h2> | 
					
						
							|  |  |  | <hero-birthday></hero-birthday> | 
					
						
							| 
									
										
										
										
											2016-02-09 13:50:08 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  | <hr> | 
					
						
							| 
									
										
										
										
											2016-05-13 13:44:14 -07:00
										 |  |  | <a id="birthday-date-pipe"></a> | 
					
						
							|  |  |  | <h2>Birthday DatePipe</h2> | 
					
						
							|  |  |  | <!-- #docregion hero-birthday-template --> | 
					
						
							| 
									
										
										
										
											2016-02-09 13:50:08 -08:00
										 |  |  | <p>The hero's birthday is {{ birthday | date }}</p> | 
					
						
							| 
									
										
										
										
											2016-05-13 13:44:14 -07:00
										 |  |  | <!-- #enddocregion hero-birthday-template--> | 
					
						
							| 
									
										
										
										
											2016-02-09 13:50:08 -08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-05-13 13:44:14 -07:00
										 |  |  | <!-- #docregion format-birthday --> | 
					
						
							| 
									
										
										
										
											2016-02-09 13:50:08 -08:00
										 |  |  | <p>The hero's birthday is {{ birthday | date:"MM/dd/yy" }} </p> | 
					
						
							| 
									
										
										
										
											2016-05-13 13:44:14 -07:00
										 |  |  | <!-- #enddocregion format-birthday--> | 
					
						
							| 
									
										
										
										
											2016-02-09 13:50:08 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  | <hr> | 
					
						
							| 
									
										
										
										
											2016-05-13 13:44:14 -07:00
										 |  |  | <a id="happy-birthday2"></a> | 
					
						
							|  |  |  | <h2>Hero Birthday v2</h2> | 
					
						
							|  |  |  | <hero-birthday2></hero-birthday2> | 
					
						
							| 
									
										
										
										
											2016-02-09 13:50:08 -08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-05-13 13:44:14 -07:00
										 |  |  | <hr> | 
					
						
							|  |  |  | <a id="birthday-pipe-chaining"></a> | 
					
						
							|  |  |  | <h2>Birthday Pipe Chaining</h2> | 
					
						
							| 
									
										
										
										
											2016-02-09 13:50:08 -08:00
										 |  |  | <p> | 
					
						
							| 
									
										
										
										
											2016-05-13 13:44:14 -07:00
										 |  |  | <!-- #docregion chained-birthday --> | 
					
						
							|  |  |  |   The chained hero's birthday is | 
					
						
							|  |  |  |   {{ birthday | date | uppercase}} | 
					
						
							|  |  |  | <!-- #enddocregion chained-birthday --> | 
					
						
							| 
									
										
										
										
											2016-02-09 13:50:08 -08:00
										 |  |  | </p> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <p> | 
					
						
							| 
									
										
										
										
											2016-05-13 13:44:14 -07:00
										 |  |  | <!-- #docregion chained-parameter-birthday --> | 
					
						
							|  |  |  |   The chained hero's birthday is | 
					
						
							|  |  |  |   {{  birthday | date:'fullDate' | uppercase}} | 
					
						
							|  |  |  | <!-- #enddocregion chained-parameter-birthday --> | 
					
						
							| 
									
										
										
										
											2016-02-09 13:50:08 -08:00
										 |  |  | </p> | 
					
						
							|  |  |  | <p> | 
					
						
							| 
									
										
										
										
											2016-05-13 13:44:14 -07:00
										 |  |  | <!-- #docregion chained-parameter-birthday-parens --> | 
					
						
							|  |  |  |   The chained hero's birthday is | 
					
						
							|  |  |  |   {{ ( birthday | date:'fullDate' ) | uppercase}} | 
					
						
							|  |  |  | <!-- #enddocregion chained-parameter-birthday-parens --> | 
					
						
							| 
									
										
										
										
											2016-02-09 13:50:08 -08:00
										 |  |  | </p> | 
					
						
							|  |  |  | <hr> | 
					
						
							| 
									
										
										
										
											2016-05-13 13:44:14 -07:00
										 |  |  | <a id="power-booster"></a> | 
					
						
							|  |  |  | <power-booster></power-booster> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <hr> | 
					
						
							|  |  |  | <a id="power-boost-calc"></a> | 
					
						
							|  |  |  | <power-boost-calculator>loading</power-boost-calculator> | 
					
						
							| 
									
										
										
										
											2016-02-09 13:50:08 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  | <hr> | 
					
						
							| 
									
										
										
										
											2016-05-13 13:44:14 -07:00
										 |  |  | <a id="flying-heroes"></a> | 
					
						
							|  |  |  | <flying-heroes></flying-heroes> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <hr> | 
					
						
							|  |  |  | <a id="flying-heroes-impure"></a> | 
					
						
							|  |  |  | <flying-heroes-impure></flying-heroes-impure> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <hr> | 
					
						
							|  |  |  | <a id="hero-message"></a> | 
					
						
							|  |  |  | <!-- async examples at the top so can see them in action --> | 
					
						
							|  |  |  | <hero-message></hero-message> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <hr> | 
					
						
							|  |  |  | <a id="hero-list"></a> | 
					
						
							|  |  |  | <hero-list></hero-list> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <div style="margin-top:12em;"></div> |