17 lines
310 B
TypeScript
17 lines
310 B
TypeScript
|
// #docregion
|
||
|
// #docregion import
|
||
|
import {Component, View, bootstrap} from 'angular2/angular2';
|
||
|
// #enddocregion
|
||
|
|
||
|
@Component({
|
||
|
selector: 'my-app'
|
||
|
})
|
||
|
@View({
|
||
|
template: '<h1 id="output">My first Angular 2 App</h1>'
|
||
|
})
|
||
|
class AppComponent {
|
||
|
}
|
||
|
// #docregion bootstrap
|
||
|
bootstrap(AppComponent);
|
||
|
// #enddocregion
|