2015-08-03 20:45:58 -04:00
|
|
|
// #docregion
|
|
|
|
// #docregion import
|
|
|
|
import {Component, View, bootstrap} from 'angular2/angular2';
|
|
|
|
// #enddocregion
|
|
|
|
|
2015-08-08 16:55:53 -04:00
|
|
|
// #docregion class-w-annotations
|
2015-08-03 20:45:58 -04:00
|
|
|
@Component({
|
|
|
|
selector: 'my-app'
|
|
|
|
})
|
|
|
|
@View({
|
2015-08-08 16:55:53 -04:00
|
|
|
template: '<h1 id="output">My First Angular 2 App</h1>'
|
2015-08-03 20:45:58 -04:00
|
|
|
})
|
2015-08-08 16:55:53 -04:00
|
|
|
// #docregion class
|
|
|
|
class AppComponent { }
|
|
|
|
// #enddocregion
|
|
|
|
// #enddocregion
|
|
|
|
|
2015-08-03 20:45:58 -04:00
|
|
|
// #docregion bootstrap
|
|
|
|
bootstrap(AppComponent);
|
|
|
|
// #enddocregion
|
2015-08-08 16:55:53 -04:00
|
|
|
// #enddocregion
|