| 
									
										
										
										
											2016-05-03 14:06:32 +02:00
										 |  |  | import { Component, Input } from '@angular/core'; | 
					
						
							|  |  |  | import { Hero } from './hero'; | 
					
						
							| 
									
										
										
										
											2016-04-05 09:27:10 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | // #docregion stylelink
 | 
					
						
							|  |  |  | @Component({ | 
					
						
							|  |  |  |   selector: 'hero-team', | 
					
						
							|  |  |  |   template: `
 | 
					
						
							|  |  |  |     <link rel="stylesheet" href="app/hero-team.component.css"> | 
					
						
							|  |  |  |     <h3>Team</h3> | 
					
						
							|  |  |  |     <ul> | 
					
						
							| 
									
										
										
										
											2016-04-29 01:36:35 +01:00
										 |  |  |       <li *ngFor="let member of hero.team"> | 
					
						
							| 
									
										
										
										
											2016-04-05 09:27:10 +03:00
										 |  |  |         {{member}} | 
					
						
							|  |  |  |       </li> | 
					
						
							|  |  |  |     </ul>`
 | 
					
						
							|  |  |  | }) | 
					
						
							|  |  |  | // #enddocregion stylelink
 | 
					
						
							|  |  |  | export class HeroTeamComponent { | 
					
						
							|  |  |  |   @Input() hero: Hero; | 
					
						
							|  |  |  | } |