18 lines
444 B
TypeScript
18 lines
444 B
TypeScript
// #docregion import
|
|
import { Component } from '@angular/core';
|
|
// #enddocregion import
|
|
import { HeroListComponent } from './hero-list.component';
|
|
import { SalesTaxComponent } from './sales-tax.component';
|
|
|
|
@Component({
|
|
selector: 'my-app',
|
|
template: `
|
|
<hero-list></hero-list>
|
|
<sales-tax></sales-tax>
|
|
`,
|
|
directives: [HeroListComponent, SalesTaxComponent]
|
|
})
|
|
// #docregion export
|
|
export class AppComponent { }
|
|
// #enddocregion export
|