closes #483 A major refactoring of the intro chapters includes text revision and the addition of "module" as an 8th "basic building block". Incorporates John Papa feedback.
11 lines
264 B
TypeScript
11 lines
264 B
TypeScript
import {Component, Input} from 'angular2/core';
|
|
import {Hero} from './hero';
|
|
|
|
@Component({
|
|
selector: 'hero-detail',
|
|
templateUrl: 'app/hero-detail.component.html',
|
|
directives: [HeroDetailComponent]
|
|
})
|
|
export class HeroDetailComponent {
|
|
@Input() hero:Hero;
|
|
} |