| 
									
										
										
										
											2016-03-26 12:18:13 -04:00
										 |  |  | // #docplaster
 | 
					
						
							|  |  |  | // #docregion
 | 
					
						
							| 
									
										
										
										
											2016-06-13 00:41:33 +02:00
										 |  |  | import { Component }             from '@angular/core'; | 
					
						
							| 
									
										
										
										
											2016-03-26 12:18:13 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | import { HeroService }          from './hero.service'; | 
					
						
							|  |  |  | import { LoggerService }        from './logger.service'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | //////// HeroBiosComponent ////
 | 
					
						
							|  |  |  | // #docregion simple
 | 
					
						
							|  |  |  | @Component({ | 
					
						
							| 
									
										
										
										
											2016-06-08 01:06:25 +02:00
										 |  |  |   selector: 'hero-bios', | 
					
						
							|  |  |  |   template: `
 | 
					
						
							| 
									
										
										
										
											2016-03-26 12:18:13 -04:00
										 |  |  |     <hero-bio [heroId]="1"></hero-bio> | 
					
						
							|  |  |  |     <hero-bio [heroId]="2"></hero-bio> | 
					
						
							|  |  |  |     <hero-bio [heroId]="3"></hero-bio>`, | 
					
						
							|  |  |  |   providers: [HeroService] | 
					
						
							|  |  |  | }) | 
					
						
							| 
									
										
										
										
											2016-06-08 01:06:25 +02:00
										 |  |  | export class HeroBiosComponent { | 
					
						
							| 
									
										
										
										
											2016-03-26 12:18:13 -04:00
										 |  |  | // #enddocregion simple
 | 
					
						
							|  |  |  | // #docregion ctor
 | 
					
						
							|  |  |  |   constructor(logger: LoggerService) { | 
					
						
							|  |  |  |     logger.logInfo('Creating HeroBiosComponent'); | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | // #enddocregion ctor
 | 
					
						
							|  |  |  | // #docregion simple
 | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | // #enddocregion simple
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | //////// HeroBiosAndContactsComponent ////
 | 
					
						
							|  |  |  | // #docregion hero-bios-and-contacts
 | 
					
						
							|  |  |  | @Component({ | 
					
						
							| 
									
										
										
										
											2016-06-08 01:06:25 +02:00
										 |  |  |   selector: 'hero-bios-and-contacts', | 
					
						
							| 
									
										
										
										
											2016-03-26 12:18:13 -04:00
										 |  |  |   // #docregion template
 | 
					
						
							| 
									
										
										
										
											2016-06-08 01:06:25 +02:00
										 |  |  |   template: `
 | 
					
						
							| 
									
										
										
										
											2016-03-26 12:18:13 -04:00
										 |  |  |     <hero-bio [heroId]="1"> <hero-contact></hero-contact> </hero-bio> | 
					
						
							|  |  |  |     <hero-bio [heroId]="2"> <hero-contact></hero-contact> </hero-bio> | 
					
						
							|  |  |  |     <hero-bio [heroId]="3"> <hero-contact></hero-contact> </hero-bio>`, | 
					
						
							|  |  |  |   // #enddocregion template
 | 
					
						
							|  |  |  |   // #docregion class-provider
 | 
					
						
							|  |  |  |   providers: [HeroService] | 
					
						
							|  |  |  |   // #enddocregion class-provider
 | 
					
						
							|  |  |  | }) | 
					
						
							| 
									
										
										
										
											2016-06-08 01:06:25 +02:00
										 |  |  | export class HeroBiosAndContactsComponent { | 
					
						
							| 
									
										
										
										
											2016-03-26 12:18:13 -04:00
										 |  |  |   constructor(logger: LoggerService) { | 
					
						
							|  |  |  |     logger.logInfo('Creating HeroBiosAndContactsComponent'); | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2016-06-08 01:06:25 +02:00
										 |  |  | // #enddocregion hero-bios-and-contacts
 |