14 lines
225 B
Markdown
14 lines
225 B
Markdown
|
```
|
||
|
import {Component, View, bootstrap} from 'angular2/angular2';
|
||
|
|
||
|
@Component({
|
||
|
selector: 'my-app'
|
||
|
})
|
||
|
@View({
|
||
|
template: '<h1 id="output">My first Angular 2 App</h1>'
|
||
|
})
|
||
|
class AppComponent {
|
||
|
}
|
||
|
bootstrap(AppComponent);
|
||
|
|
||
|
```
|