2015-08-03 17:45:58 -07:00
|
|
|
```
|
|
|
|
var AppComponent = (function () {
|
|
|
|
function AppComponent() {
|
|
|
|
}
|
|
|
|
AppComponent = __decorate([
|
|
|
|
angular2_1.Component({
|
|
|
|
selector: 'my-app'
|
|
|
|
}),
|
|
|
|
angular2_1.View({
|
2015-08-08 13:55:53 -07:00
|
|
|
template: '<h1 id="output">My First Angular 2 App</h1>'
|
2015-08-03 17:45:58 -07:00
|
|
|
}),
|
|
|
|
__metadata('design:paramtypes', [])
|
|
|
|
], AppComponent);
|
|
|
|
return AppComponent;
|
|
|
|
})();
|
|
|
|
```
|