26 lines
582 B
TypeScript
26 lines
582 B
TypeScript
// #docplaster more code here
|
|
// #docregion noend,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 noend
|
|
|
|
// #docregion noend2,twoparts
|
|
// indented comment
|
|
var x = 3;
|
|
// plaster should go immediately under here.
|
|
// #enddocregion
|
|
// #docregion bootstrap, twoparts
|
|
bootstrap(AppComponent);
|
|
// #enddocregion twoparts
|
|
// to be included in bootstrap...
|
|
// #enddocregion
|