2016-04-01 17:23:34 -07:00
|
|
|
// #docregion
|
2016-04-27 11:28:22 -07:00
|
|
|
import { Component } from '@angular/core';
|
2016-04-01 17:23:34 -07:00
|
|
|
|
2016-05-24 15:16:23 +02:00
|
|
|
import { HeroesComponent, HeroService } from './heroes';
|
2016-04-01 17:23:34 -07:00
|
|
|
|
|
|
|
@Component({
|
2016-05-18 15:53:13 +02:00
|
|
|
moduleId: module.id,
|
2016-04-25 09:24:13 -07:00
|
|
|
selector: 'toh-app',
|
2016-04-01 17:23:34 -07:00
|
|
|
template: `
|
2016-04-25 22:42:22 -07:00
|
|
|
<toh-heroes></toh-heroes>
|
2016-04-01 17:23:34 -07:00
|
|
|
`,
|
2016-05-18 15:53:13 +02:00
|
|
|
styleUrls: ['app.component.css'],
|
2016-04-25 22:42:22 -07:00
|
|
|
directives: [HeroesComponent],
|
2016-04-01 17:23:34 -07:00
|
|
|
providers: [HeroService]
|
|
|
|
})
|
2016-04-25 22:42:22 -07:00
|
|
|
export class AppComponent { }
|