14 lines
247 B
TypeScript
14 lines
247 B
TypeScript
// #docregion
|
|
import { Component } from '@angular/core';
|
|
|
|
import { HeroService } from './heroes';
|
|
|
|
@Component({
|
|
selector: 'toh-app',
|
|
template: `
|
|
<toh-heroes></toh-heroes>
|
|
`,
|
|
providers: [HeroService]
|
|
})
|
|
export class AppComponent {}
|