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