22 lines
		
	
	
		
			664 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
		
		
			
		
	
	
			22 lines
		
	
	
		
			664 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
|  | // #docregion
 | ||
|  | import {Component} from 'angular2/core'; | ||
|  | import {HeroAsyncMessageComponent} from './hero-async-message.component'; | ||
|  | import {HeroBirthday} from './hero-birthday2.component'; | ||
|  | import {HeroListComponent} from './hero-list.component'; | ||
|  | import {PowerBooster} from './power-booster.component'; | ||
|  | import {PowerBoostCalculator} from './power-boost-calculator.component'; | ||
|  | 
 | ||
|  | @Component({ | ||
|  |   selector: 'my-app', | ||
|  |   templateUrl: 'app/app.component.html', | ||
|  |   directives:[ | ||
|  |     HeroAsyncMessageComponent, | ||
|  |     HeroBirthday, | ||
|  |     HeroListComponent, | ||
|  |     PowerBooster, PowerBoostCalculator | ||
|  |   ] | ||
|  | }) | ||
|  | export class AppComponent { | ||
|  |   birthday = new Date(1988,3,15); // April 15, 1988
 | ||
|  | } |