2015-06-16 13:46:12 -04:00
|
|
|
import {Component, bootstrap, View} from 'angular2/angular2'
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'my-app'
|
|
|
|
})
|
|
|
|
@View({
|
|
|
|
template: '<h1>Hello {{ name }}</h1>'
|
|
|
|
})
|
|
|
|
// Component controller
|
|
|
|
class MyAppComponent {
|
|
|
|
name: string;
|
|
|
|
|
|
|
|
constructor() { this.name = 'Alice'; }
|
|
|
|
}
|
|
|
|
|
2015-10-01 22:49:45 -04:00
|
|
|
bootstrap(MyAppComponent);
|