2015-08-11 03:27:09 -04:00
|
|
|
// #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);
|
2015-10-14 15:47:22 -04:00
|
|
|
// #enddocregion
|