angular-docs-cn/public/docs/_examples/architecture/ts/app/app.component.ts

18 lines
438 B
TypeScript
Raw Normal View History

// #docregion import
2016-04-27 14:28:22 -04:00
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 { }
2016-04-27 14:28:22 -04:00
// #enddocregion export