2015-10-14 15:47:22 -04:00
|
|
|
// #docplaster more code here
|
2015-10-13 22:44:27 -04:00
|
|
|
// #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 {
|
|
|
|
}
|
|
|
|
|
2015-10-14 15:47:22 -04:00
|
|
|
// #docregion twoparts
|
|
|
|
// indented comment
|
|
|
|
var x = 3;
|
|
|
|
// plaster should go immediately under here.
|
|
|
|
// #enddocregion
|
2015-10-13 22:44:27 -04:00
|
|
|
// #docregion bootstrap, twoparts
|
|
|
|
bootstrap(AppComponent);
|
|
|
|
// #enddocregion twoparts
|
|
|
|
// to be included in bootstrap...
|
|
|
|
// #enddocregion
|