3f50248940
closes #1260
19 lines
423 B
TypeScript
19 lines
423 B
TypeScript
// #docregion
|
|
|
|
// app.component.ts
|
|
import { Component } from '@angular/core';
|
|
|
|
import { HeroesComponent } from './heroes/heroes.component';
|
|
import { HeroService } from './heroes/shared/hero.service';
|
|
|
|
@Component({
|
|
selector: 'toh-app',
|
|
template: `
|
|
<toh-heroes></toh-heroes>
|
|
`,
|
|
styleUrls: ['app/app.component.css'],
|
|
directives: [HeroesComponent],
|
|
providers: [HeroService]
|
|
})
|
|
export class AppComponent { }
|